Skip to content

Commit 12535c3

Browse files
committed
fix: make more explicit file list evaluation test
1 parent 6db9106 commit 12535c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/DIRAC/WorkloadManagementSystem/JobWrapper/JobWrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,13 +957,13 @@ def __transferOutputDataFiles(self, outputData, outputSE, outputPath):
957957
lfnPath = os.path.dirname(lfn)
958958
lfnLocal = os.path.basename(lfn)
959959
globbedLfnList += [os.path.join(lfnPath, gLfn) for gLfn in List.uniqueElements(getGlobbedFiles(lfnLocal))]
960-
if globbedLfnList != lfnList and globbedLfnList:
960+
if globbedLfnList and globbedLfnList != lfnList:
961961
self.log.info("Found a pattern in the output data LFN list, LFNs to upload are:", ", ".join(globbedLfnList))
962962
lfnList = globbedLfnList
963963

964964
# Check whether the list of outputData has a globbable pattern
965965
globbedOutputList = List.uniqueElements(getGlobbedFiles(nonlfnList))
966-
if globbedOutputList != nonlfnList and globbedOutputList:
966+
if globbedOutputList and globbedOutputList != nonlfnList:
967967
self.log.info(
968968
"Found a pattern in the output data file list, files to upload are:", ", ".join(globbedOutputList)
969969
)

0 commit comments

Comments
 (0)