Check vars against Mapping in DEBUG (#66355)
When ANSIBLE_DEBUG=1, vars are VarsWithSources now which is a Mapping. Check vars against Mapping instead of dict.
This commit is contained in:
parent
b070fd1630
commit
b7dfcfa0b4
1 changed files with 2 additions and 2 deletions
|
@ -506,8 +506,8 @@ class Templar:
|
||||||
are being changed.
|
are being changed.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if not isinstance(variables, dict):
|
if not isinstance(variables, Mapping):
|
||||||
raise AnsibleAssertionError("the type of 'variables' should be a dict but was a %s" % (type(variables)))
|
raise AnsibleAssertionError("the type of 'variables' should be a Mapping but was a %s" % (type(variables)))
|
||||||
self._available_variables = variables
|
self._available_variables = variables
|
||||||
self._cached_result = {}
|
self._cached_result = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue