Skip to content

Commit b072052

Browse files
committed
fix: minor printing fixes
1 parent 2c4e614 commit b072052

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/DIRAC/Core/scripts/dirac_install_db.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def main():
1919
from DIRAC.FrameworkSystem.Client.ComponentInstaller import gComponentInstaller
2020
from DIRAC.FrameworkSystem.Utilities import MonitoringUtilities
2121

22+
user = "DIRAC"
23+
2224
gComponentInstaller.exitOnError = True
2325
gComponentInstaller.getMySQLPasswords()
2426
for db in args:
@@ -34,9 +36,7 @@ def main():
3436

3537
if db != "InstalledComponentsDB":
3638
# get the user that installed the DB
37-
if useServerCertificate():
38-
user = "DIRAC"
39-
else:
39+
if not useServerCertificate():
4040
result = getProxyInfo()
4141
if not result["OK"]:
4242
return result

src/DIRAC/ResourceStatusSystem/scripts/dirac_rss_set_status.py

-3
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def run(switchDict):
227227
tokenOwner = tokenOwner["Value"]
228228

229229
gLogger.notice(f"TokenOwner is {tokenOwner}")
230-
print(switchDict)
231230
result = setStatus(switchDict, tokenOwner)
232231
if not result["OK"]:
233232
gLogger.error(result["Message"])
@@ -241,9 +240,7 @@ def main():
241240
# Script initialization
242241
registerSwitches()
243242
switchDict = parseSwitches()
244-
print(switchDict)
245243
switchDictSets = unpack(switchDict)
246-
print(switchDictSets)
247244

248245
# Run script
249246
for switchDict in switchDictSets:

0 commit comments

Comments
 (0)