diff --git a/salt/fileserver/azurefs.py b/salt/fileserver/azurefs.py index d1cdf1c33b3..7eb919fa7dd 100644 --- a/salt/fileserver/azurefs.py +++ b/salt/fileserver/azurefs.py @@ -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):