mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
Fix RelatedManager exception issue on the dashboard
This commit is contained in:
@@ -164,7 +164,7 @@ class DashboardView(APIView):
|
|||||||
failed_group_inventory = [g.inventory for g in user_groups if g.inventory.has_active_failures]
|
failed_group_inventory = [g.inventory for g in user_groups if g.inventory.has_active_failures]
|
||||||
group_with_job_failure = 0
|
group_with_job_failure = 0
|
||||||
for i in failed_group_inventory:
|
for i in failed_group_inventory:
|
||||||
for j in i.jobs:
|
for j in i.jobs.all():
|
||||||
if j.failed:
|
if j.failed:
|
||||||
group_with_job_failure += 1
|
group_with_job_failure += 1
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user