mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Break apart long line
This commit is contained in:
parent
6de2c2a50c
commit
0a660a9f80
@ -161,7 +161,9 @@ def _sync(form, saltenv=None):
|
||||
mod_file = os.path.join(__opts__['cachedir'], 'module_refresh')
|
||||
with salt.utils.fopen(mod_file, 'a+') as ofile:
|
||||
ofile.write('')
|
||||
if form == 'grains' and __opts__.get('grains_cache') and os.path.isfile(os.path.join(__opts__['cachedir'], 'grains.cache.p')):
|
||||
if form == 'grains' and \
|
||||
__opts__.get('grains_cache') and \
|
||||
os.path.isfile(os.path.join(__opts__['cachedir'], 'grains.cache.p')):
|
||||
try:
|
||||
os.remove(os.path.join(__opts__['cachedir'], 'grains.cache.p'))
|
||||
except OSError:
|
||||
|
Loading…
Reference in New Issue
Block a user