Commit a77d6610 authored by Lionel Walter's avatar Lionel Walter
Browse files

Add the report in the response

parent f8d347c5
...@@ -100,7 +100,7 @@ class JobStart(Resource): ...@@ -100,7 +100,7 @@ class JobStart(Resource):
return {'error': e.message}, 500 return {'error': e.message}, 500
try: try:
helm_result = start(process_id, job_name, job_parameters) start(process_id, job_name, job_parameters)
except ImportApiError as e: except ImportApiError as e:
return {'error': e.message}, 500 return {'error': e.message}, 500
...@@ -119,4 +119,7 @@ class JobStart(Resource): ...@@ -119,4 +119,7 @@ class JobStart(Resource):
except ImportApiError as e: except ImportApiError as e:
return {'error': e.message}, 500 return {'error': e.message}, 500
return helm_result return {
'status': 'SUCCESS',
'message': report["report"],
}, 201
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