1
0
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:
Luke Sneeringer 2014-08-04 10:15:41 -05:00
parent 674e895d0a
commit e50711e301

View File

@ -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'):