diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index c71d7f90b4..90f67b2d8c 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -394,7 +394,7 @@ class Group(CommonModelNameNotUnique): def mark_inactive_recursive(self, parent=None): from awx.main.tasks import update_inventory_computed_fields def mark_actual(parent=parent): - linked_children = [(parent, self)] + [(self, child) for child in self.children.all()] + linked_children = [(parent, self)] marked_groups = [] marked_hosts = [] for subgroup in linked_children: