Merge pull request #7281 from hulu/modjk-workers-shadow

modjk.recover_all: rename local var to not shadow workers() func
This commit is contained in:
Pedro Algarvio 2013-09-16 14:31:03 -07:00
commit a34226e3b9

View File

@ -241,11 +241,11 @@ def recover_all(lbn, profile='default'):
ret = {}
config = get_running(profile)
try:
workers = config['worker.{0}.balance_workers'.format(lbn)].split(',')
workers_ = config['worker.{0}.balance_workers'.format(lbn)].split(',')
except KeyError:
return ret
for worker in workers:
for worker in workers_:
curr_state = worker_status(worker, profile)
if curr_state['activation'] != 'ACT':
worker_activate(worker, lbn, profile)