mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Merge pull request #349 from jhoekx/template-unicode-fixes
Fixup unicode varReplace templating.
This commit is contained in:
commit
4819ce4989
2 changed files with 23 additions and 1 deletions
|
@ -235,7 +235,7 @@ def varReplace(raw, vars):
|
|||
# original)
|
||||
varname = m.group(2).lower()
|
||||
|
||||
replacement = str(varLookup(varname, vars) or m.group())
|
||||
replacement = unicode(varLookup(varname, vars) or m.group())
|
||||
|
||||
start, end = m.span()
|
||||
done.append(raw[:start]) # Keep stuff leading up to token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue