From 4cfa05bebf53ec7f74dc77ba422b60d6a8944104 Mon Sep 17 00:00:00 2001 From: Andrei Tsaregorodtsev Date: Fri, 28 Jun 2024 12:47:36 +0200 Subject: [PATCH] fix: fix checking the presence of -l switch --- 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 bd9243ae16a..4056df949bd 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py @@ -122,7 +122,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) + "]"