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
a77d6610
Commit
a77d6610
authored
Jun 30, 2020
by
Lionel Walter
Browse files
Add the report in the response
parent
f8d347c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
import_api_app/resources/JobStart.py
View file @
a77d6610
...
@@ -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
Write
Preview
Markdown
is supported
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