1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

Change label on recent jobs for host to use 'status'

This commit is contained in:
Matthew Jones 2014-01-16 12:24:09 -05:00
parent 79f9953e56
commit a0affa90d4

View File

@ -467,7 +467,7 @@ class HostSerializer(BaseSerializerWithVariables):
pass
d['all_groups'] = [{'id': g.id, 'name': g.name} for g in obj.all_groups.all()]
d['groups'] = [{'id': g.id, 'name': g.name} for g in obj.groups.all()]
d['recent_jobs'] = [{'id': j.job.id, 'name': j.job.job_template.name, 'failed': j.job.status} \
d['recent_jobs'] = [{'id': j.job.id, 'name': j.job.job_template.name, 'status': j.job.status} \
for j in obj.job_host_summaries.all().order_by('-created')[:5]]
return d