mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
AC-1235 Fix for RunJobTest failures.
This commit is contained in:
parent
b14aa0b55d
commit
3086ec4930
@ -227,7 +227,7 @@ class Inventory(CommonModel):
|
||||
root_group_pks = set(self.root_groups.values_list('pk', flat=True))
|
||||
group_depths = {} # pk: max_depth
|
||||
def update_group_depths(group_pk, current_depth=0):
|
||||
max_depth = group_depths.get(group_pk, 0)
|
||||
max_depth = group_depths.get(group_pk, -1)
|
||||
if current_depth > max_depth:
|
||||
group_depths[group_pk] = current_depth
|
||||
for child_pk in group_children_map.get(group_pk, set()):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user