mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02: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
|
from awx.main.models.inventory import Host
|
||||||
hostnames = set()
|
hostnames = set()
|
||||||
try:
|
try:
|
||||||
for v in self.event_data.values():
|
for stat in ('changed', 'dark', 'failures', 'ok', 'processed', 'skipped'):
|
||||||
hostnames.update(v.keys())
|
hostnames.update(self.event_data.get(stat, {}).keys())
|
||||||
except AttributeError: # In case event_data or v isn't a dict.
|
except AttributeError: # In case event_data or v isn't a dict.
|
||||||
pass
|
pass
|
||||||
with ignore_inventory_computed_fields():
|
with ignore_inventory_computed_fields():
|
||||||
|
|||||||
Reference in New Issue
Block a user