Skip to content

Commit 6764f6d

Browse files
committed
Fix #1586
1 parent a2a79cd commit 6764f6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IM/connectors/OpenStack.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,8 @@ def add_elastic_ip_from_pool(self, vm, node, fixed_ip=None, pool_name=None):
16271627
delay = 5
16281628
attached = False
16291629
ports = node.driver.ex_get_node_ports(node)
1630-
while not attached and cont < retries:
1630+
while ports and not attached and cont < retries:
1631+
# Use each port to attach the IP
16311632
port_num = cont % len(ports)
16321633
port_id = ports[port_num].id
16331634
try:

0 commit comments

Comments
 (0)