From 4e4f0b9bc8db72cf4e59f704312ec8a320214b87 Mon Sep 17 00:00:00 2001 From: fstagni Date: Tue, 8 Aug 2023 09:44:17 +0200 Subject: [PATCH 1/2] fix: removed quotes --- .../WorkloadManagementSystem/ConfigTemplate.cfg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg b/src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg index 698646cdefd..b619a2cba9f 100644 --- a/src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg +++ b/src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg @@ -26,13 +26,13 @@ Services Authorization { Default = authenticated - sendMessage = "Operator" - sendMessage += "GenericPilot" - getMetadata = "Operator" - getMetadata += "TrustedHost" - finaliseLogs = "Operator" - finaliseLogs += "Pilot" - finaliseLogs += "GenericPilot" + sendMessage = Operator + sendMessage += GenericPilot + getMetadata = Operator + getMetadata += TrustedHost + finaliseLogs = Operator + finaliseLogs += Pilot + finaliseLogs += GenericPilot } } ##END From eb6e08b562d3e6b4f8180b48cfa293486c74acb6 Mon Sep 17 00:00:00 2001 From: fstagni Date: Tue, 8 Aug 2023 10:16:11 +0200 Subject: [PATCH 2/2] fix: correctly load the setup in use --- src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py | 4 ++-- .../FrameworkSystem/Client/SystemAdministratorClientCLI.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py b/src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py index 48bc0892cea..4ca39bd438b 100644 --- a/src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py +++ b/src/DIRAC/FrameworkSystem/Client/ComponentInstaller.py @@ -674,7 +674,7 @@ def addDefaultOptionsToCS( """ Add the section with the component options to the CS """ - if mySetup is None: + if not mySetup: mySetup = self.setup if gConfig_o: @@ -2403,7 +2403,7 @@ def installTornado(self): os.chmod(runFile, self.gDefaultPerms) except Exception: - error = "Failed to prepare self.setup forTornado" + error = "Failed to prepare self.setup for Tornado" gLogger.exception(error) if self.exitOnError: DIRAC.exit(-1) diff --git a/src/DIRAC/FrameworkSystem/Client/SystemAdministratorClientCLI.py b/src/DIRAC/FrameworkSystem/Client/SystemAdministratorClientCLI.py index 3cb4c4e0981..1033c0243de 100644 --- a/src/DIRAC/FrameworkSystem/Client/SystemAdministratorClientCLI.py +++ b/src/DIRAC/FrameworkSystem/Client/SystemAdministratorClientCLI.py @@ -738,7 +738,7 @@ def do_install(self, args): system, component, extensionsByPriority(), - specialOptions, + specialOptions=specialOptions, addDefaultOptions=True, ) else: