Add a missing "not" in the Python libcloud tutorial.
The point of the script is to create an instance, give it networking and deploy an app, if the project has an IP that is in use it will try to assign that IP to the instance and fail(silently) so the instance won't get an IP. Change-Id: I7b9ff513c4eac5e2830e57f12e09840159980e07
This commit is contained in:
parent
3bf053fe2e
commit
d03bf3f50f
@ -119,7 +119,7 @@ for instance in conn.list_nodes():
|
||||
print('Checking for unused Floating IP...')
|
||||
unused_floating_ip = None
|
||||
for floating_ip in conn.ex_list_floating_ips():
|
||||
if floating_ip.node_id:
|
||||
if not floating_ip.node_id:
|
||||
unused_floating_ip = floating_ip
|
||||
break
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user