Fix valueerror in vmware_inventory.py (#28597)

pull/28599/head
jctanner 7 years ago committed by GitHub
parent 10467efaba
commit 65feaa11b2

@ -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

Loading…
Cancel
Save