Tweaking logical assignment of vm_metadata in abiquo inventory script

pull/8828/merge
James Cammarata 10 years ago
parent eb8de9646c
commit 1880279bfe

@ -171,7 +171,6 @@ def generate_inv_from_api(enterprise_entity,config):
vm_metadata = metadata['metadata'] vm_metadata = metadata['metadata']
else: else:
vm_metadata = metadata['metadata']['metadata'] 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: except Exception, e:
pass pass

Loading…
Cancel
Save