Commit b072052 1 parent 2c4e614 commit b072052 Copy full SHA for b072052
File tree 2 files changed +3
-6
lines changed
ResourceStatusSystem/scripts
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ def main():
19
19
from DIRAC .FrameworkSystem .Client .ComponentInstaller import gComponentInstaller
20
20
from DIRAC .FrameworkSystem .Utilities import MonitoringUtilities
21
21
22
+ user = "DIRAC"
23
+
22
24
gComponentInstaller .exitOnError = True
23
25
gComponentInstaller .getMySQLPasswords ()
24
26
for db in args :
@@ -34,9 +36,7 @@ def main():
34
36
35
37
if db != "InstalledComponentsDB" :
36
38
# get the user that installed the DB
37
- if useServerCertificate ():
38
- user = "DIRAC"
39
- else :
39
+ if not useServerCertificate ():
40
40
result = getProxyInfo ()
41
41
if not result ["OK" ]:
42
42
return result
Original file line number Diff line number Diff line change @@ -227,7 +227,6 @@ def run(switchDict):
227
227
tokenOwner = tokenOwner ["Value" ]
228
228
229
229
gLogger .notice (f"TokenOwner is { tokenOwner } " )
230
- print (switchDict )
231
230
result = setStatus (switchDict , tokenOwner )
232
231
if not result ["OK" ]:
233
232
gLogger .error (result ["Message" ])
@@ -241,9 +240,7 @@ def main():
241
240
# Script initialization
242
241
registerSwitches ()
243
242
switchDict = parseSwitches ()
244
- print (switchDict )
245
243
switchDictSets = unpack (switchDict )
246
- print (switchDictSets )
247
244
248
245
# Run script
249
246
for switchDict in switchDictSets :
You can’t perform that action at this time.
0 commit comments