mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46422 from rallytime/bp-46300
Back-port #46300 to 2017.7
This commit is contained in:
commit
a154d35fc7
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ def set_(package, question, type, value, *extra):
|
|||
fd_, fname = salt.utils.files.mkstemp(prefix="salt-", close_fd=False)
|
||||
|
||||
line = "{0} {1} {2} {3}".format(package, question, type, value)
|
||||
os.write(fd_, line)
|
||||
os.write(fd_, salt.utils.to_bytes(line))
|
||||
os.close(fd_)
|
||||
|
||||
_set_file(fname)
|
||||
|
|
Loading…
Add table
Reference in a new issue