mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Expand tilde after expanding vars
This commit is contained in:
parent
72ce1e8f14
commit
edab8d338d
1 changed files with 1 additions and 1 deletions
2
lib/ansible/plugins/cache/jsonfile.py
vendored
2
lib/ansible/plugins/cache/jsonfile.py
vendored
|
@ -50,7 +50,7 @@ class CacheModule(BaseCacheModule):
|
|||
|
||||
self._timeout = float(C.CACHE_PLUGIN_TIMEOUT)
|
||||
self._cache = {}
|
||||
self._cache_dir = os.path.expandvars(os.path.expanduser(C.CACHE_PLUGIN_CONNECTION)) # expects a dir path
|
||||
self._cache_dir = os.path.expanduser(os.path.expandvars(C.CACHE_PLUGIN_CONNECTION)) # expects a dir path
|
||||
if not self._cache_dir:
|
||||
raise AnsibleError("error, fact_caching_connection is not set, cannot use fact cache")
|
||||
|
||||
|
|
Loading…
Reference in a new issue