mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Handle non-ASCII chars during template data decode
Change requested by terminalmage, line 255.
This commit is contained in:
parent
435afb76ad
commit
d336decde7
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ def _construct_pillar(top_dir,
|
|||
else:
|
||||
data = contents
|
||||
if template is True:
|
||||
data = salt.template.compile_template_str(template=salt.utils.stringutils.to_str(contents),
|
||||
data = salt.template.compile_template_str(template=salt.utils.stringutils.to_unicode(contents),
|
||||
renderers=renderers,
|
||||
default=render_default,
|
||||
blacklist=renderer_blacklist,
|
||||
|
|
Loading…
Add table
Reference in a new issue