mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Fixup unicode varReplace templating.
The original patches should have conflicted? 53bde0bf517d1302c80f80180f85995efa36a00e vs efde61e53729964f3e740dcbb9c52f889186719d
This commit is contained in:
parent
262b35e7d3
commit
74e21e6154
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