Skip to content

Commit

Permalink
Bypassed pylint complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Nilsson committed Nov 22, 2024
1 parent 20ac67c commit 5113a06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pilot/api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ class StageOutClient(StagingClient):

mode = "stage-out"

def prepare_destinations(self, files: list, activities: list or str, alt_exclude: list = []) -> list:
def prepare_destinations(self, files: list, activities: list or str, alt_exclude: list = None) -> list:
"""
Resolve destination RSE (filespec.ddmendpoint) for each entry from `files` according to requested `activities`.
Expand All @@ -1083,6 +1083,9 @@ def prepare_destinations(self, files: list, activities: list or str, alt_exclude
:param alt_exclude: global list of destinations that should be excluded / not used for alternative stage-out
:return: updated fspec entries (list).
"""
if alt_exclude is None: # to bypass pylint complaint if declared as [] above
alt_exclude = []

if not self.infosys.queuedata: # infosys is not initialized: not able to fix destination if need, nothing to do
return files

Expand Down

0 comments on commit 5113a06

Please sign in to comment.