Minor fixes to CI python scripts

- enhanced CustomCommand logging
- print ParseError
This commit is contained in:
Guido Casati
2024-04-12 15:53:43 +02:00
parent cfaa182f57
commit 72337b9c43
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ class RANManagement():
cmd = cls_cmd.getConnection(self.node)
ret = cmd.run(self.command)
cmd.close()
logging.debug(f"Custum command : {self.command} on node : {self.node} returnCode : {ret.returncode}")
logging.debug(f"CustomCommand: {self.command} on node: {self.node} - {'OK, command succeeded' if ret.returncode == 0 else f'Error, return code: {ret.returncode}'}")
status = 'OK'
message = []
if ret.returncode != 0 and not self.command_fail: