mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
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:
commit
a34226e3b9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user