Commit 81a2a6d1 authored by Stevan Radakovic's avatar Stevan Radakovic Committed by Senthil Kumaran Shanmugasundaram
Browse files

Return state and health information as strings not numbers.

Getting numbers for state and health fields over XMLRPC api is
pretty useless. Convert them to strings instead.

Change-Id: I45a5f95afa00ca69a2f8778442de73f47da4d1e5
parent 824d9580
......@@ -813,6 +813,8 @@ class SchedulerAPI(ExposedAPI):
try:
job = get_restricted_job(self.user, job_id)
job.status = build_job_status_display(job.state, job.health)
job.state = job.get_state_display()
job.health = job.get_health_display()
job.submitter_username = job.submitter.username
job.absolute_url = job.get_absolute_url()
except PermissionDenied:
......
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