Commit a0601281 by Brian Coca

Merge pull request #9697 from quixoten/allow_gitkeep

Allow .gitkeep in the jsonfile fact cache dir
parents 2bf26956 8130ed8d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment