mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #4688 from hulu/batch
cli.batch: fix typo, use idiomatic var name
This commit is contained in:
commit
6bd9145703
@ -80,7 +80,7 @@ class Batch(object):
|
||||
active = []
|
||||
ret = {}
|
||||
iters = []
|
||||
# Itterate while we still have things to execute
|
||||
# Iterate while we still have things to execute
|
||||
while len(ret) < len(self.minions):
|
||||
next_ = []
|
||||
if len(to_run) <= bnum and not active:
|
||||
@ -88,7 +88,7 @@ class Batch(object):
|
||||
while to_run:
|
||||
next_.append(to_run.pop())
|
||||
else:
|
||||
for ind in range(bnum - len(active)):
|
||||
for i in range(bnum - len(active)):
|
||||
if to_run:
|
||||
next_.append(to_run.pop())
|
||||
active += next_
|
||||
|
Loading…
Reference in New Issue
Block a user