Skip to content

Commit

Permalink
Fix parsing pilot commands
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr authored Oct 12, 2023
1 parent 130f522 commit 8a7b12f
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 8a7b12f

Please sign in to comment.