Skip to content

Commit

Permalink
Merge pull request saltstack#178 from jesusaurus/develop
Browse files Browse the repository at this point in the history
Our attempts should be slowing down, not speeding up
  • Loading branch information
techhat committed Nov 30, 2012
2 parents ec644f6 + d7634c6 commit 44f9256
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions saltcloud/clouds/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def create(vm_):
return False

not_ready = True
nr_count = 50
nr_total = 50
nr_count = nr_total
log.debug('Looking for IP addresses')
while not_ready:
nodelist = list_nodes()
Expand Down Expand Up @@ -224,7 +225,7 @@ def create(vm_):
if nr_count == 0:
log.warn('Timed out waiting for a public ip, continuing anyway')
break
time.sleep(nr_count)
time.sleep(nr_total - nr_count + 5)

if ssh_interface(vm_) == 'private_ips':
ip_address = preferred_ip(vm_, data.private_ips)
Expand Down

0 comments on commit 44f9256

Please sign in to comment.