mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 16:06:43 +00:00
Tweaking logical assignment of vm_metadata in abiquo inventory script
This commit is contained in:
@@ -171,8 +171,7 @@ def generate_inv_from_api(enterprise_entity,config):
|
||||
vm_metadata = metadata['metadata']
|
||||
else:
|
||||
vm_metadata = metadata['metadata']['metadata']
|
||||
if not vm_metadata is None:
|
||||
inventory['_meta']['hostvars'][vm_nic] = vm_metadata
|
||||
inventory['_meta']['hostvars'][vm_nic] = vm_metadata
|
||||
except Exception, e:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user