mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Only use known stats keys for determining hostnames to use for job host summaries.
This commit is contained in:
parent
4b87e0a80d
commit
2988ac1904
@ -1073,8 +1073,8 @@ class JobEvent(CreatedModifiedModel):
|
||||
from awx.main.models.inventory import Host
|
||||
hostnames = set()
|
||||
try:
|
||||
for v in self.event_data.values():
|
||||
hostnames.update(v.keys())
|
||||
for stat in ('changed', 'dark', 'failures', 'ok', 'processed', 'skipped'):
|
||||
hostnames.update(self.event_data.get(stat, {}).keys())
|
||||
except AttributeError: # In case event_data or v isn't a dict.
|
||||
pass
|
||||
with ignore_inventory_computed_fields():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user