no limit to retries if master is still not present

This commit is contained in:
yolanda.robla@canonical.com 2014-03-03 16:30:42 +01:00
parent dacb2f6291
commit f5bc310283
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,10 @@ def cluster_with():
num_tries += 1
# iterate over all the nodes, join to the first available
utils.juju_log('INFO', 'Available nodes to cluster: %s' % str(available_nodes))
if len(available_nodes) == 0:
utils.juju_log('INFO', 'Master node still not ready, retrying')
return
max_tries = config('max-cluster-tries')
for node in available_nodes:
utils.juju_log('INFO',