Commit 948de42d authored by Hardik Juneja's avatar Hardik Juneja Committed by Rafael Monnerat

monitor: fix the report content output

parent 6f907b4f
......@@ -248,12 +248,14 @@ class RunPromise(object):
status_json = {}
if process.returncode != 0:
status_json["status"] = "ERROR"
if not stdout:
status_json["message"] = stderr
else:
status_json["message"] = stdout
else:
status_json["status"] = "OK"
if stderr:
status_json["message"] = stderr
elif stdout:
status_json["status"] = "OK"
status_json["message"] = stdout
if start_date:
status_json["start-date"] = start_date
if title:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment