From 18b99e39f637b139609af0a521b4cd17c4975c0b Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Thu, 25 Aug 2022 10:50:26 +0200 Subject: [PATCH] fix: Strip new lines before parsing output of dirac-resource-get-parameters --- Pilot/pilotCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pilot/pilotCommands.py b/Pilot/pilotCommands.py index a96d8a49..8f52e8ce 100644 --- a/Pilot/pilotCommands.py +++ b/Pilot/pilotCommands.py @@ -507,7 +507,7 @@ def execute(self): try: import json - resourceDict = json.loads(resourceDict.split("\n")[-1]) + resourceDict = json.loads(resourceDict.strip().split("\n")[-1]) except ValueError: self.log.error("The pilot command output is not json compatible.") sys.exit(1)