From 38eb53de1d33f7ca637f692242d05011c86780bd Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 11 Aug 2015 21:23:37 -0400 Subject: [PATCH] Fix bug in vars using correct temp value for vars Fixes #11877 --- lib/ansible/vars/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py index 2a5be96690..d3cff147ea 100644 --- a/lib/ansible/vars/__init__.py +++ b/lib/ansible/vars/__init__.py @@ -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