Skip to content

Commit 0082b1a

Browse files
committed
sweep: #5749 JobSanity doesn't handle input sanboxes named "LFN:"
1 parent 8716925 commit 0082b1a

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)