mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Our attempts should be slowing down, not speeding up
This commit is contained in:
parent
ec644f6680
commit
d7634c69bb
@ -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()
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user