mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #48897 from rallytime/bp-48863
Back-port #48863 to 2018.3
This commit is contained in:
commit
070af9d925
1 changed files with 1 additions and 2 deletions
|
@ -1118,8 +1118,7 @@ def _get_template_texts(source_list=None,
|
|||
tmplines = None
|
||||
with salt.utils.files.fopen(rndrd_templ_fn, 'rb') as fp_:
|
||||
tmplines = fp_.read()
|
||||
if six.PY3:
|
||||
tmplines = tmplines.decode(__salt_system_encoding__)
|
||||
tmplines = tmplines.decode(__salt_system_encoding__)
|
||||
tmplines = tmplines.splitlines(True)
|
||||
if not tmplines:
|
||||
msg = 'Failed to read rendered template file {0} ({1})'
|
||||
|
|
Loading…
Add table
Reference in a new issue