Fix virtualport section of virt.get_nics loop

This commit is contained in:
rallytime 2015-05-16 10:46:33 -06:00
parent f3ca682f92
commit 0616fb7884

View file

@ -808,8 +808,8 @@ def get_nics(vm_):
if v_node.tagName == 'virtualport':
temp = {}
temp['type'] = v_node.getAttribute('type')
for key in v_node.attributes:
temp[key] = v_node.getAttribute(key)
for key, value in v_node.attributes.items():
temp[key] = value
nic['virtualport'] = temp
if 'mac' not in nic:
continue