From dde2e66a2f107991961ad2bb6d39b4b1caf153b7 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 22 Mar 2016 15:36:07 -0400 Subject: [PATCH] Fix missing .all() from active flag filter nuke --- awx/main/management/commands/inventory_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index 47b333f75c..91b3a0a544 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -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'))