Cleaning up bugs related to perf improvement changes

pull/13012/merge
James Cammarata 9 years ago
parent f10022dbd2
commit 1027abd596

@ -96,7 +96,7 @@ class TaskQueueManager:
self._workers = [] self._workers = []
def _initialize_workers(self, num): def _initialize_workers(self, num):
for i in xrange(num_workers): for i in xrange(num):
main_q = multiprocessing.Queue() main_q = multiprocessing.Queue()
rslt_q = multiprocessing.Queue() rslt_q = multiprocessing.Queue()

@ -83,10 +83,7 @@ class AnsibleJ2Vars:
if isinstance(variable, dict) and varname == "vars" or isinstance(variable, HostVars): if isinstance(variable, dict) and varname == "vars" or isinstance(variable, HostVars):
return variable return variable
else: else:
if self._templar._contains_vars(variable): return self._templar.template(variable)
return self._templar.template(variable)
else:
return variable
def add_locals(self, locals): def add_locals(self, locals):
''' '''

Loading…
Cancel
Save