mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix _assign_floating_ips in openstack.py
Fixes #42417 In salt/cloud/clouds/openstack.py : - _assign_floating_ips() should not raise SaltCloudSystemExit() just yet. - Instead, it should let _query_node_data() a chance to get the IP from node['public_ips'].
This commit is contained in:
parent
4bf35a74de
commit
72924b06b8
@ -907,9 +907,9 @@ def _assign_floating_ips(vm_, conn, kwargs):
|
||||
floating.append(idx)
|
||||
break
|
||||
if not floating:
|
||||
raise SaltCloudSystemExit(
|
||||
log.warning(
|
||||
'There are no more floating IP addresses '
|
||||
'available, please create some more'
|
||||
'available, please create some more if necessary'
|
||||
)
|
||||
except Exception as e:
|
||||
if str(e).startswith('404'):
|
||||
|
Loading…
Reference in New Issue
Block a user