1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Fix missing .all() from active flag filter nuke

This commit is contained in:
Akita Noek 2016-03-22 15:36:07 -04:00
parent 16475dd973
commit dde2e66a2f

View File

@ -821,7 +821,7 @@ class Command(NoArgsCommand):
db_groups = self.inventory_source.group.all_children
else:
db_groups = self.inventory.groups
for db_group in db_groups:
for db_group in db_groups.all():
# Delete child group relationships not present in imported data.
db_children = db_group.children
db_children_name_pk_map = dict(db_children.values_list('name', 'pk'))