From aa7472f19f8bb6c153c88cf33603e999164e6677 Mon Sep 17 00:00:00 2001 From: Andrei Tsaregorodtsev Date: Fri, 28 Jun 2024 15:10:03 +0200 Subject: [PATCH] sweep: #7714 fix: check for the -l pilot option --- src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py index b22c70d9eed..6b12ae5dfa4 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py @@ -166,7 +166,7 @@ def pilotWrapperScript( # - file:/cvmfs/somewhere/lhcbdirac/pilot # - file:/cvmfs/elsewhere/lhcbdirac/pilot project = "dirac" - if "-l" in pilotOptions: + if " -l " in pilotOptions: project = pilotOptions.split(" ")[pilotOptions.split(" ").index("-l") + 1].lower() + "dirac" CVMFS_locs = "[" + ",".join('"file:' + os.path.join(loc, project, 'pilot"') for loc in CVMFS_locations) + "]"