Commit 43a0e354 authored by Hardik Juneja's avatar Hardik Juneja

monitor: fix the report content output

parent a80ea4e6
......@@ -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