mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Fix incorrect type coercion
This commit is contained in:
parent
0b81631022
commit
d265b671b9
@ -1524,7 +1524,7 @@ def comment_line(path,
|
||||
else:
|
||||
# Write the existing line (no change)
|
||||
wline = line
|
||||
w_file.write(salt.utils.stringutils.to_str(wline))
|
||||
w_file.write(salt.utils.stringutils.to_bytes(wline))
|
||||
except (OSError, IOError) as exc:
|
||||
raise CommandExecutionError(
|
||||
"Unable to write file '{0}'. Contents may "
|
||||
|
Loading…
Reference in New Issue
Block a user