mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #22624 from rallytime/bp-22563
Backport #22563 to 2015.2
This commit is contained in:
commit
2d859a5e3d
@ -425,6 +425,9 @@ class SSH(object):
|
||||
running.pop(host)
|
||||
if len(rets) >= len(self.targets):
|
||||
break
|
||||
# Sleep when limit or all threads started
|
||||
if len(running) >= self.opts.get('ssh_max_procs', 25) or len(self.targets) >= len(running):
|
||||
time.sleep(0.1)
|
||||
|
||||
def run_iter(self, mine=False):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user