Commit f3d7a8ac authored by Rémi Duraffort's avatar Rémi Duraffort

Fix API breakage from 2d37b3

Even if is_pipeline is always True, it should still be returned by the API.

Change-Id: I8e3fee037041eb35b257c8762e97e09e59b28646
parent 2658935c
......@@ -245,7 +245,8 @@ class SchedulerDevicesAPI(ExposedV2API):
"type": device.device_type.name,
"health": device.get_health_display(),
"state": device.get_state_display(),
"current_job": current_job.pk if current_job else None}
"current_job": current_job.pk if current_job else None,
"pipeline": True}
ret.append(device_dict)
return ret
......@@ -290,6 +291,7 @@ class SchedulerDevicesAPI(ExposedV2API):
"health_job": bool(device.get_health_check()),
"description": device.description,
"public": device.is_public,
"pipeline": True,
"has_device_dict": bool(device.load_configuration(output_format="raw")),
"worker": None,
"user": device.user.username if device.user else None,
......
......@@ -235,6 +235,7 @@ class SchedulerJobsAPI(ExposedV2API):
"device": device_hostname,
"device_type": device_type,
"health_check": job.health_check,
"pipeline": True,
"health": job.get_health_display(),
"state": job.get_state_display(),
"submitter": job.submitter.username,
......
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