From fe29db1a466b28564a32e505f052d8bf8ab01d26 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 19 May 2014 11:15:56 -0400 Subject: [PATCH] Fix small plurality issue when recalculating host fields --- awx/main/models/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 2121ba16ec..45cef121a8 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -200,7 +200,7 @@ class Inventory(CommonModel): # Find all hosts that need the has_inventory_sources flag cleared. hosts_to_clear = hosts_qs.filter(has_inventory_sources=True).exclude(pk__in=hosts_with_cloud_inventory) for host_pk in hosts_to_clear.values_list('pk', flat=True): - host_updates = hosts_to_updates.setdefault(host_pk, {}) + host_updates = hosts_to_update.setdefault(host_pk, {}) host_updates['has_inventory_sources'] = False # Now apply updates to hosts where needed (in batches). all_update_pks = hosts_to_update.keys()