mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
set 'nonstring' arg to passthru.
This commit is contained in:
parent
2d73892acf
commit
d92e8edf6e
1 changed files with 1 additions and 2 deletions
|
@ -184,8 +184,7 @@ class _jinja2_vars(object):
|
|||
var = self.vars[varname]
|
||||
# HostVars is special, return it as-is, as is the special variable
|
||||
# 'vars', which contains the vars structure
|
||||
if type(var) == str:
|
||||
var = to_unicode(var)
|
||||
var = to_unicode(var, nonstring="passthru")
|
||||
if isinstance(var, dict) and varname == "vars" or isinstance(var, HostVars):
|
||||
return var
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue