Merge pull request #250 from saito-hideki/bug/249
The nova_compute module create a list of un-use floating ip by value of fixed_ip
This commit is contained in:
commit
d2c7d30c50
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ def _add_floating_ip_from_pool(module, nova, server):
|
||||||
# loop through all floating IPs
|
# loop through all floating IPs
|
||||||
for f_ip in all_floating_ips:
|
for f_ip in all_floating_ips:
|
||||||
# if not reserved and the correct pool, add
|
# if not reserved and the correct pool, add
|
||||||
if f_ip.instance_id is None and (f_ip.pool == pool):
|
if f_ip.fixed_ip is None and (f_ip.pool == pool):
|
||||||
pool_ips.append(f_ip.ip)
|
pool_ips.append(f_ip.ip)
|
||||||
# only need one
|
# only need one
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue