Commit a0ac2d66 authored by Stevan Radakovic's avatar Stevan Radakovic Committed by Remi Duraffort
Browse files

Add absolute_url to job_details API.

Additional information for job_details xmlrpc call.

Change-Id: Ibf79b8e5b19f714a511ad3c0c835bc3cc2a1f6b7
parent c0575503
......@@ -596,7 +596,7 @@ class SchedulerAPI(ExposedAPI):
target_group, visibility, requested_device_id, pipeline_compatibility,
submit_time, is_public, _old_status, actual_device_id, definition,
sub_id, requested_device_type_id, _results_bundle_id, end_time,
group_id, absolute_url
if not job_id:
......@@ -605,6 +605,7 @@ class SchedulerAPI(ExposedAPI):
job = get_restricted_job(self.user, job_id)
job.status = job.get_status_display()
job.absolute_url = job.get_absolute_url()
except PermissionDenied:
raise xmlrpclib.Fault(
401, "Permission denied for user to job %s" % job_id)
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