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

include_vars now properly deals with hash_behaviour (#15895)

This commit is contained in:
nvigot 2016-09-16 21:40:38 +02:00 committed by Brian Coca
parent 3e754086b6
commit 10f840e80d

View file

@ -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