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