Merge pull request #9697 from quixoten/allow_gitkeep
Allow .gitkeep in the jsonfile fact cache dir
This commit is contained in:
commit
a060128162
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):
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue