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:
parent
79f9953e56
commit
a0affa90d4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user