mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Do not restart the whole thing if roster is not around
This commit is contained in:
parent
8d1450cc47
commit
372f2bbd93
1 changed files with 3 additions and 2 deletions
|
@ -430,9 +430,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)
|
||||
|
|
Loading…
Add table
Reference in a new issue