Skip to content

Commit

Permalink
Fix valueerror in vmware_inventory.py (ansible#28597)
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner authored Aug 24, 2017
1 parent 10467ef commit 65feaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/inventory/vmware_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def get_host_info(self, host):
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
Expand Down

0 comments on commit 65feaa1

Please sign in to comment.