mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Merge pull request #43870 from basepi/azurefs
[bugfix] Add hash cache invalidation to azurefs
This commit is contained in:
commit
484220e177
1 changed files with 5 additions and 0 deletions
|
@ -265,6 +265,11 @@ def update():
|
|||
os.unlink(lk_fn)
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
hash_cachedir = os.path.join(__opts__['cachedir'], 'azurefs', 'hashes')
|
||||
shutil.rmtree(hash_cachedir)
|
||||
except Exception:
|
||||
log.exception('Problem occurred trying to invalidate hash cach for azurefs')
|
||||
|
||||
|
||||
def file_hash(load, fnd):
|
||||
|
|
Loading…
Add table
Reference in a new issue