mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #7755 from sivel/rax-asg-normalize-nic
module rax_scaling_group: safe normalization of nics
This commit is contained in:
commit
b7a5ce37a4
1 changed files with 6 additions and 2 deletions
|
@ -215,6 +215,10 @@ def rax_asg(module, cooldown=300, disk_config=None, files={}, flavor=None,
|
||||||
nics.extend(cnw.get_server_networks(network))
|
nics.extend(cnw.get_server_networks(network))
|
||||||
|
|
||||||
for nic in nics:
|
for nic in nics:
|
||||||
|
# pyrax is currently returning net-id, but we need uuid
|
||||||
|
# this check makes this forward compatible for a time when
|
||||||
|
# pyrax uses uuid instead
|
||||||
|
if nic.get('net-id'):
|
||||||
nic.update(uuid=nic['net-id'])
|
nic.update(uuid=nic['net-id'])
|
||||||
del nic['net-id']
|
del nic['net-id']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue