Commit 5bd06e9a authored by Mihai Patrascoiu's avatar Mihai Patrascoiu
Browse files

FTS-1669: Uniform treatment of edge case when job list contains only 1 invalid job

parent 5e89709e
Pipeline #1951955 passed with stage
in 2 minutes and 37 seconds
......@@ -224,14 +224,12 @@ class JobsController(BaseController):
setattr(job, 'http_status', '200 Ok')
statuses.append(job)
except HTTPError, e:
if len(job_ids) == 1:
raise
statuses.append(dict(
job_id=job_id,
http_status="%s %s" % (e.code, e.title),
http_message=e.detail
))
multistatus = True
multistatus = (len(job_ids) > 1)
if len(job_ids) == 1:
return statuses[0]
......
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