mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #9864 from mscherer/add_error_jsonfile
Add a explicit error when fact_caching_connection is not set
This commit is contained in:
commit
a55c6625d4
1 changed files with 2 additions and 0 deletions
2
lib/ansible/cache/jsonfile.py
vendored
2
lib/ansible/cache/jsonfile.py
vendored
|
@ -34,6 +34,8 @@ class CacheModule(BaseCacheModule):
|
|||
self._timeout = float(C.CACHE_PLUGIN_TIMEOUT)
|
||||
self._cache = {}
|
||||
self._cache_dir = C.CACHE_PLUGIN_CONNECTION # expects a dir path
|
||||
if not self._cache_dir:
|
||||
utils.exit("error, fact_caching_connection is not set, cannot use fact cache")
|
||||
|
||||
if not os.path.exists(self._cache_dir):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue