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:
clem-compilatio 2017-07-24 16:59:19 +02:00
parent 4bf35a74de
commit 72924b06b8

View File

@ -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'):