Merge pull request #9697 from quixoten/allow_gitkeep

Allow .gitkeep in the jsonfile fact cache dir
pull/9699/merge
Brian Coca 10 years ago
commit a060128162

@ -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…
Cancel
Save