Merge pull request #13142 from unprofession-al/fix_jsonfile_fact_caching_connection
Make jsonfile fact cache handle fancy paths properlypull/4420/head
commit
6fe3f07e09
|
@ -50,7 +50,7 @@ class CacheModule(BaseCacheModule):
|
||||||
|
|
||||||
self._timeout = float(C.CACHE_PLUGIN_TIMEOUT)
|
self._timeout = float(C.CACHE_PLUGIN_TIMEOUT)
|
||||||
self._cache = {}
|
self._cache = {}
|
||||||
self._cache_dir = C.CACHE_PLUGIN_CONNECTION # expects a dir path
|
self._cache_dir = os.path.expandvars(os.path.expanduser(C.CACHE_PLUGIN_CONNECTION)) # expects a dir path
|
||||||
if not self._cache_dir:
|
if not self._cache_dir:
|
||||||
raise AnsibleError("error, fact_caching_connection is not set, cannot use fact cache")
|
raise AnsibleError("error, fact_caching_connection is not set, cannot use fact cache")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue