mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow .gitkeep in the jsonfile fact cache dir
This commit is contained in:
parent
2bf269568b
commit
8130ed8de0
1 changed files with 1 additions and 1 deletions
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue