mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Change back to binary read
This commit is contained in:
parent
65753cff6d
commit
75b6ed1fd5
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user