mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Use expanduser on cache dir loaded from INI.
This commit is contained in:
parent
674e895d0a
commit
e50711e301
@ -160,7 +160,7 @@ class AzureInventory(object):
|
|||||||
|
|
||||||
# Cache related
|
# Cache related
|
||||||
if config.has_option('azure', 'cache_path'):
|
if config.has_option('azure', 'cache_path'):
|
||||||
cache_path = config.get('azure', 'cache_path')
|
cache_path = os.path.expanduser(config.get('azure', 'cache_path'))
|
||||||
self.cache_path_cache = cache_path + '/ansible-azure.cache'
|
self.cache_path_cache = cache_path + '/ansible-azure.cache'
|
||||||
self.cache_path_index = cache_path + '/ansible-azure.index'
|
self.cache_path_index = cache_path + '/ansible-azure.index'
|
||||||
if config.has_option('azure', 'cache_max_age'):
|
if config.has_option('azure', 'cache_max_age'):
|
||||||
|
Loading…
Reference in New Issue
Block a user