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