1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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() copied_vars = all_vars.copy()
if 'hostvars' in copied_vars: if 'hostvars' in copied_vars:
del copied_vars['hostvars'] del copied_vars['hostvars']
all_vars['vars'] = all_vars.copy() all_vars['vars'] = copied_vars
#CACHED_VARS[cache_entry] = all_vars #CACHED_VARS[cache_entry] = all_vars