Do not restart the whole thing if roster is not around

This commit is contained in:
Bo Maryniuk 2016-10-24 15:24:09 +02:00
parent b8f4e46920
commit ee48deeded

View file

@ -385,9 +385,10 @@ class SSH(object):
returned = set()
rets = set()
init = False
if not self.targets:
raise salt.exceptions.SaltClientError('No matching targets found in roster.')
while True:
if not self.targets:
log.error('No matching targets found in roster.')
break
if len(running) < self.opts.get('ssh_max_procs', 25) and not init:
try:
host = next(target_iter)