mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #9697 from quixoten/allow_gitkeep
Allow .gitkeep in the jsonfile fact cache dir
This commit is contained in:
2
lib/ansible/cache/jsonfile.py
vendored
2
lib/ansible/cache/jsonfile.py
vendored
@@ -98,7 +98,7 @@ class CacheModule(BaseCacheModule):
|
||||
def keys(self):
|
||||
keys = []
|
||||
for k in os.listdir(self._cache_dir):
|
||||
if not self.has_expired(k):
|
||||
if not (k.startswith('.') or self.has_expired(k)):
|
||||
keys.append(k)
|
||||
return keys
|
||||
|
||||
|
||||
Reference in New Issue
Block a user