mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix additional bytestring issue
This commit is contained in:
parent
716e99c453
commit
d5f27901e3
@ -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…
Reference in New Issue
Block a user