mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Write file in normal mode
This commit is contained in:
parent
bfcbdeca3b
commit
a42621c817
1 changed files with 2 additions and 2 deletions
|
@ -4258,8 +4258,8 @@ def _write_regpol_data(data_to_write,
|
|||
16),
|
||||
gpt_ini_data[general_location.end():])
|
||||
if gpt_ini_data:
|
||||
with salt.utils.files.fopen(gpt_ini_path, 'wb') as gpt_file:
|
||||
gpt_file.write(salt.utils.stringutils.to_bytes(gpt_ini_data))
|
||||
with salt.utils.files.fopen(gpt_ini_path, 'w') as gpt_file:
|
||||
gpt_file.write(gpt_ini_data)
|
||||
# TODO: This needs to be more specific
|
||||
except Exception as e:
|
||||
msg = 'An error occurred attempting to write to {0}, the exception was {1}'.format(
|
||||
|
|
Loading…
Add table
Reference in a new issue