diff --git a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py index c707685f074..629b39192e2 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py @@ -241,7 +241,7 @@ def pilotWrapperScript( random.shuffle(location) # we try from the available locations -locs = [os.path.join('https://', loc) for loc in location] +locs = [os.path.join('https://', loc) if not loc.startswith(('file:', 'https:')) else loc for loc in location] locations = locs + [os.path.join(loc, 'pilot') for loc in locs] # adding also the cvmfs locations locations += %(CVMFS_locs)s