mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #11418 from gtmanfred/apache
Switch apache module to using salt.utils.fopen
This commit is contained in:
commit
52192cf4cf
@ -429,7 +429,7 @@ def config(name, config, edit=True):
|
||||
key = entry.keys()[0]
|
||||
configs = _parse_config(entry[key], key)
|
||||
if edit:
|
||||
with open(name, 'w') as configfile:
|
||||
with salt.utils.fopen(name, 'w') as configfile:
|
||||
configfile.write('# This file is managed by saltstack.\n')
|
||||
configfile.write(configs)
|
||||
return configs
|
||||
|
Loading…
Reference in New Issue
Block a user