Fix bug in vars using correct temp value for vars

Fixes #11877
This commit is contained in:
James Cammarata 2015-08-11 21:23:37 -04:00
parent 4d853a5d3c
commit 38eb53de1d

View file

@ -275,7 +275,7 @@ class VariableManager:
copied_vars = all_vars.copy()
if 'hostvars' in copied_vars:
del copied_vars['hostvars']
all_vars['vars'] = all_vars.copy()
all_vars['vars'] = copied_vars
#CACHED_VARS[cache_entry] = all_vars