mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Switch notification to use jobhostsummary name
In case the host is removed prior to the notification being emitted we'll use the host_name cached on the jobhostsummary object iself.
This commit is contained in:
parent
1aca42ae93
commit
cec1f413a4
@ -674,7 +674,7 @@ class Job(UnifiedJob, JobOptions):
|
||||
data = super(Job, self).notification_data()
|
||||
all_hosts = {}
|
||||
for h in self.job_host_summaries.all():
|
||||
all_hosts[h.host.name] = dict(failed=h.failed,
|
||||
all_hosts[h.host_name] = dict(failed=h.failed,
|
||||
changed=h.changed,
|
||||
dark=h.dark,
|
||||
failures=h.failures,
|
||||
|
Loading…
Reference in New Issue
Block a user