Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
04f1a249
Commit
04f1a249
authored
Jun 11, 2020
by
Lionel Walter
Browse files
Change message for status to be consistent with microservices
parent
15b2ca4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
import_api_app/resources/JobStart.py
View file @
04f1a249
...
...
@@ -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
...
...
import_api_app/resources/JobStop.py
View file @
04f1a249
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment