mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #23809 from rallytime/virt_get_nics_fix
Fix virtualport section of virt.get_nics loop
This commit is contained in:
commit
6b3352bb1a
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