From 1d1137a8d8f8c293aa8dd2d02e732e11b471d803 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Thu, 3 Jul 2014 12:23:17 -0400 Subject: [PATCH] Use correct variable name ininventory import. --- 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 d0e1a68c9f..3b9146df7c 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -748,7 +748,7 @@ class Command(NoArgsCommand): mem_instance_ids = all_mem_instance_ids[offset:(offset + self._batch_size)] for db_host_pk in db_hosts.filter(instance_id__in=mem_instance_ids).values_list('pk', flat=True): del_host_pks.discard(db_host_pk) - all_db_host_pks = [v for k,v in self.db_instance_id_map.items() if k in mem_instance_ids] + all_db_host_pks = [v for k,v in self.db_instance_id_map.items() if k in all_mem_instance_ids] for db_host_pk in all_db_host_pks: del_host_pks.discard(db_host_pk) del_host_pks = list(del_host_pks)