From 65feaa11b2f8bbea92092284434bf2e1ccbc224c Mon Sep 17 00:00:00 2001 From: jctanner Date: Thu, 24 Aug 2017 10:04:52 -0400 Subject: [PATCH] Fix valueerror in vmware_inventory.py (#28597) --- contrib/inventory/vmware_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/inventory/vmware_inventory.py b/contrib/inventory/vmware_inventory.py index 3945b7fecda..c0c799095cd 100755 --- a/contrib/inventory/vmware_inventory.py +++ b/contrib/inventory/vmware_inventory.py @@ -745,7 +745,7 @@ class VMWareInventory(object): return self.inventory['_meta']['hostvars'][host] elif self.args.host and self.inventory['_meta']['hostvars']: match = None - for k, v in self.inventory['_meta']['hostvars']: + for k, v in self.inventory['_meta']['hostvars'].items(): if self.inventory['_meta']['hostvars'][k]['name'] == self.args.host: match = k break