From 5a5506ffc30955ab087545e644109fa5ce42d7a2 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 16 Sep 2013 12:54:10 -0700 Subject: [PATCH] modjk.recover_all: rename local var to not shadow workers() func --- salt/modules/modjk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/modjk.py b/salt/modules/modjk.py index 36d8f1850f..26b2473112 100644 --- a/salt/modules/modjk.py +++ b/salt/modules/modjk.py @@ -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)