1
0
Fork 0
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:
Devin Christensen 2014-12-02 14:23:38 -07:00
parent 2bf269568b
commit 8130ed8de0

View file

@ -98,7 +98,7 @@ class CacheModule(BaseCacheModule):
def keys(self): def keys(self):
keys = [] keys = []
for k in os.listdir(self._cache_dir): 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) keys.append(k)
return keys return keys