mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix additional bytestring issue
This commit is contained in:
parent
716e99c453
commit
d5f27901e3
1 changed files with 1 additions and 1 deletions
|
@ -2179,7 +2179,7 @@ def replace(path,
|
|||
if not_found_content is None:
|
||||
not_found_content = repl
|
||||
if prepend_if_not_found:
|
||||
new_file.insert(0, not_found_content + os.linesep)
|
||||
new_file.insert(0, not_found_content + salt.utils.to_bytes(os.linesep))
|
||||
else:
|
||||
# append_if_not_found
|
||||
# Make sure we have a newline at the end of the file
|
||||
|
|
Loading…
Add table
Reference in a new issue