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):
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