From e50711e301bf1f16155ebe1f56a082da2d8e508b Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Mon, 4 Aug 2014 10:15:41 -0500 Subject: [PATCH] Use expanduser on cache dir loaded from INI. --- awx/plugins/inventory/windows_azure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/plugins/inventory/windows_azure.py b/awx/plugins/inventory/windows_azure.py index 7aab89718e..1ee709fa4b 100755 --- a/awx/plugins/inventory/windows_azure.py +++ b/awx/plugins/inventory/windows_azure.py @@ -160,7 +160,7 @@ class AzureInventory(object): # Cache related 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_index = cache_path + '/ansible-azure.index' if config.has_option('azure', 'cache_max_age'):