The nova_compute module create a list of un-use floating ip by value of fixed_ip.

Fixes #249
This commit is contained in:
Hideki Saito 2014-10-31 18:25:34 +09:00 committed by Matt Clay
parent edf531efd7
commit 2cb83fb196

View file

@ -321,7 +321,7 @@ def _add_floating_ip_from_pool(module, nova, server):
# loop through all floating IPs
for f_ip in all_floating_ips:
# 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)
# only need one
break