mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix virtualport section of virt.get_nics loop
This commit is contained in:
parent
f3ca682f92
commit
0616fb7884
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue