mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Move pkgrepo to fopen
This commit is contained in:
parent
d4d7326101
commit
c68a537309
@ -302,7 +302,7 @@ def managed(name, **kwargs):
|
||||
|
||||
# empty file before configure
|
||||
if kwargs.get('clean_file', False):
|
||||
open(kwargs['file'], 'w').close()
|
||||
salt.utils.fopen(kwargs['file'], 'w').close()
|
||||
|
||||
try:
|
||||
if __grains__['os_family'] == 'Debian':
|
||||
|
Loading…
Reference in New Issue
Block a user