Merge pull request #11418 from gtmanfred/apache

Switch apache module to using salt.utils.fopen
This commit is contained in:
Joseph Hall 2014-03-21 13:39:54 -06:00
commit 52192cf4cf

View File

@ -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