From 14cc33bf5b02cb728b25d6acba07c2db1be51e89 Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Wed, 16 Sep 2026 10:26:33 +0200 Subject: [PATCH] fix: missing quote in execution command of SSHComputingElement --- src/DIRAC/Resources/Computing/SSHComputingElement.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DIRAC/Resources/Computing/SSHComputingElement.py b/src/DIRAC/Resources/Computing/SSHComputingElement.py index ad2f5f4ab5b..1f8e4fd8548 100644 --- a/src/DIRAC/Resources/Computing/SSHComputingElement.py +++ b/src/DIRAC/Resources/Computing/SSHComputingElement.py @@ -395,10 +395,10 @@ def __executeHostCommand(self, connection: Connection, command: str, options: di return result # Execute the batch command with the options file path - cmd = ( - f"bash --login -c 'python3 {self.sharedArea}/execute_batch {remoteOptionsFile} || " - f"python {self.sharedArea}/execute_batch {remoteOptionsFile}" - ) + exes = ("python3", "python") + args = f"{self.sharedArea}/execute_batch {remoteOptionsFile}" + inner_cmd = " || ".join(f"{exe} {args}" for exe in exes) + cmd = f"bash --login -c '{inner_cmd}'" self.log.verbose(f"CE submission command: {cmd}")