Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
salt.8688
decode-file-contents-for-python2-bsc-1102013.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File decode-file-contents-for-python2-bsc-1102013.patch of Package salt.8688
From 65fb22511cf1e0f269ca36c4305c91c19a06056c Mon Sep 17 00:00:00 2001 From: Abid Mehmood <amehmood@suse.de> Date: Wed, 1 Aug 2018 17:19:11 +0200 Subject: [PATCH] Decode file contents for python2(bsc#1102013) --- salt/states/file.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/salt/states/file.py b/salt/states/file.py index 9bc2fef819..614b15c92e 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -1099,8 +1099,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})' -- 2.17.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor