diff options
author | James Cammarata <jimi@sngx.net> | 2015-11-04 11:26:06 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-11-04 11:26:06 -0500 |
commit | 89d713aa520fe17131efe78218f20ad09fe99688 (patch) | |
tree | 08105f897a84dff59371a36c5f0d4e558c75dd1f /lib/ansible/executor/task_executor.py | |
parent | 61ace1d3c486b294a1badad7b5f60fc40b763755 (diff) | |
download | ansible-perf_improvements.tar.gz |
Fixing up performanceperf_improvements
Diffstat (limited to 'lib/ansible/executor/task_executor.py')
-rw-r--r-- | lib/ansible/executor/task_executor.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 4b03dc0846..48018f12d3 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -156,7 +156,8 @@ class TaskExecutor: # create a copy of the job vars here so that we can modify # them temporarily without changing them too early for other # parts of the code that might still need a pristine version - vars_copy = self._job_vars.copy() + #vars_copy = self._job_vars.copy() + vars_copy = self._job_vars # now we update them with the play context vars self._play_context.update_vars(vars_copy) @@ -196,7 +197,8 @@ class TaskExecutor: # make copies of the job vars and task so we can add the item to # the variables and re-validate the task with the item variable - task_vars = self._job_vars.copy() + #task_vars = self._job_vars.copy() + task_vars = self._job_vars items = self._squash_items(items, task_vars) for item in items: @@ -340,7 +342,8 @@ class TaskExecutor: # make a copy of the job vars here, in case we need to update them # with the registered variable value later on when testing conditions - vars_copy = variables.copy() + #vars_copy = variables.copy() + vars_copy = variables self._display.debug("starting attempt loop") result = None |