Merge pull request #4688 from hulu/batch

cli.batch: fix typo, use idiomatic var name
This commit is contained in:
Thomas S Hatch 2013-05-01 09:16:51 -07:00
commit 6bd9145703

View File

@ -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_