mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
Don't include immediate children in the list for delete consideration when recursively deleting groups and their children
This commit is contained in:
@@ -394,7 +394,7 @@ class Group(CommonModelNameNotUnique):
|
|||||||
def mark_inactive_recursive(self, parent=None):
|
def mark_inactive_recursive(self, parent=None):
|
||||||
from awx.main.tasks import update_inventory_computed_fields
|
from awx.main.tasks import update_inventory_computed_fields
|
||||||
def mark_actual(parent=parent):
|
def mark_actual(parent=parent):
|
||||||
linked_children = [(parent, self)] + [(self, child) for child in self.children.all()]
|
linked_children = [(parent, self)]
|
||||||
marked_groups = []
|
marked_groups = []
|
||||||
marked_hosts = []
|
marked_hosts = []
|
||||||
for subgroup in linked_children:
|
for subgroup in linked_children:
|
||||||
|
|||||||
Reference in New Issue
Block a user