mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
c78d833540
commit
252f7c7ea9
1 changed files with 2 additions and 0 deletions
|
@ -161,6 +161,8 @@ 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'):
|
||||
os.remove(os.path.join(__opts__['cachedir'], 'grains.cache.p'))
|
||||
return ret
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue