Fix valueerror in vmware_inventory.py (#28597)
This commit is contained in:
parent
10467efaba
commit
65feaa11b2
1 changed files with 1 additions and 1 deletions
|
@ -745,7 +745,7 @@ class VMWareInventory(object):
|
||||||
return self.inventory['_meta']['hostvars'][host]
|
return self.inventory['_meta']['hostvars'][host]
|
||||||
elif self.args.host and self.inventory['_meta']['hostvars']:
|
elif self.args.host and self.inventory['_meta']['hostvars']:
|
||||||
match = None
|
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:
|
if self.inventory['_meta']['hostvars'][k]['name'] == self.args.host:
|
||||||
match = k
|
match = k
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue