Skip to content

Commit 20b9efd

Browse files
authored
Merge pull request #5789 from chrisburr/cherry-pick-2-cb771ba59-integration
[sweep:integration] JobSanity doesn't handle input sanboxes named "LFN:"
2 parents 7ddfc7b + 0082b1a commit 20b9efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/WorkloadManagementSystem/Executor/JobSanity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def checkInputSandbox(self, jobState, manifest):
139139
sbsToAssign.append((isb, "Input"))
140140
if isb.startswith("LFN:"):
141141
self.jobLog.debug("Found a LFN sandbox", isb)
142-
if isb[4] != "/": # the LFN does not start with /
142+
if len(isb) < 5 or isb[4] != "/": # the LFN does not start with /
143143
return S_ERROR("LFNs should always start with '/'")
144144
numSBsToAssign = len(sbsToAssign)
145145
if not numSBsToAssign:

0 commit comments

Comments
 (0)