mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Cleaning up bugs related to perf improvement changes
This commit is contained in:
parent
f10022dbd2
commit
1027abd596
2 changed files with 2 additions and 5 deletions
|
@ -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…
Reference in a new issue