Merge pull request #23809 from rallytime/virt_get_nics_fix

Fix virtualport section of virt.get_nics loop
This commit is contained in:
Justin Findlay 2015-05-18 09:30:08 -06:00
commit 6b3352bb1a

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