mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Only use known stats keys for determining hostnames to use for job host summaries.
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user