Skip to content

Commit

Permalink
Merge pull request #213 from DIRACGrid/chrisburr-patch-1
Browse files Browse the repository at this point in the history
Fix parsing pilot commands
  • Loading branch information
fstagni committed Oct 12, 2023
2 parents 130f522 + 8a7b12f commit f18ac29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Pilot/pilotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,11 @@ def __initJSON2(self):
for key in [self.gridCEType, "Defaults"]:
commands = pilotOptions["Commands"].get(key)
if commands is not None:
self.commands = commands
if isinstance(commands, list):
self.commands = commands
else:
# TODO: This is a workaround until the pilot JSON syncroniser is fixed
self.commands = [elem.strip() for elem in commands.split(",")]
self.log.debug("Selecting commands from JSON for Grid CE type %s" % key)
break
else:
Expand Down

0 comments on commit f18ac29

Please sign in to comment.