From 10f840e80d4fc9205f598548a48dfbe062988736 Mon Sep 17 00:00:00 2001 From: nvigot Date: Fri, 16 Sep 2016 21:40:38 +0200 Subject: [PATCH] include_vars now properly deals with hash_behaviour (#15895) --- 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 2c5a4b4f60..d10e4b81a8 100644 --- a/lib/ansible/vars/__init__.py +++ b/lib/ansible/vars/__init__.py @@ -676,6 +676,6 @@ class VariableManager: if host_name not in self._vars_cache: self._vars_cache[host_name] = dict() if varname in self._vars_cache[host_name] and isinstance(self._vars_cache[host_name][varname], MutableMapping) and isinstance(value, MutableMapping): - self._vars_cache[host_name][varname] = combine_vars(self._vars_cache[host_name][varname], value) + self._vars_cache[host_name] = combine_vars(self._vars_cache[host_name], {varname: value}) else: self._vars_cache[host_name][varname] = value