Commit 04f1a249 authored by Lionel Walter's avatar Lionel Walter
Browse files

Change message for status to be consistent with microservices

parent 15b2ca4d
......@@ -34,13 +34,13 @@ class JobStart(Resource):
message = message.replace('\n', '. ')
if output.returncode == 0:
return {
'status': 'success',
'status': 'SUCCESS',
'message': message,
'job_id': helm_name
}, 201
else:
return {
'status': 'error',
'status': 'FAILURE',
'message': message,
'job_id': helm_name
}, 500
......
......@@ -23,13 +23,13 @@ class JobStop(Resource):
message = message.replace('\n', '. ')
if output.returncode == 0:
return {
'status': 'success',
'status': 'SUCCESS',
'message': message,
'job_id': helm_name
}, 200
else:
return {
'status': 'error',
'status': 'FAILURE',
'message': message,
'job_id': helm_name
}, 500
......
Supports Markdown
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