Commit 1c09660c by Shirou WAKAYAMA Committed by Toshio Kuratomi

set 'nonstring' arg to passthru.

parent a388cd69
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment