mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 21:24:24 -07:00
parent
c09e085480
commit
4fc0aadd84
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ class VariableManager:
|
||||||
host_name = host.get_name()
|
host_name = host.get_name()
|
||||||
if host_name not in self._vars_cache:
|
if host_name not in self._vars_cache:
|
||||||
self._vars_cache[host_name] = dict()
|
self._vars_cache[host_name] = dict()
|
||||||
if varname in self._vars_cache[host_name]:
|
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][varname] = combine_vars(self._vars_cache[host_name][varname], value)
|
||||||
else:
|
else:
|
||||||
self._vars_cache[host_name][varname] = value
|
self._vars_cache[host_name][varname] = value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue