Change back to binary read

This commit is contained in:
twangboy 2016-07-01 12:09:34 -07:00
parent 65753cff6d
commit 75b6ed1fd5

View File

@ -3565,7 +3565,7 @@ def append(name,
else:
ret['comment'] = 'File {0} is in correct state'.format(name)
with salt.utils.fopen(name, 'r') as fp_:
with salt.utils.fopen(name, 'rb') as fp_:
nlines = fp_.readlines()
nlines = [item.rstrip(os.linesep) for item in nlines]