mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07:00
parent
16c2207d21
commit
758cfeb73e
4 changed files with 23 additions and 22 deletions
|
@ -426,7 +426,7 @@ class VMWareInventory(object):
|
|||
# Reset the inventory keys
|
||||
for k, v in name_mapping.items():
|
||||
|
||||
if not host_mapping or not k in host_mapping:
|
||||
if not host_mapping or k not in host_mapping:
|
||||
continue
|
||||
|
||||
# set ansible_host (2.x)
|
||||
|
@ -742,5 +742,3 @@ class VMWareInventory(object):
|
|||
if __name__ == "__main__":
|
||||
# Run the script
|
||||
print(VMWareInventory().show())
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue