aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]foreman_ansible_inventory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/foreman_ansible_inventory.py b/foreman_ansible_inventory.py
index 461146c..e2a53c3 100644..100755
--- a/foreman_ansible_inventory.py
+++ b/foreman_ansible_inventory.py
@@ -107,7 +107,7 @@ class ForemanInventory(object):
# Cache related
try:
- cache_path = config.get('cache', 'path')
+ cache_path = os.path.expanduser(config.get('cache', 'path'))
except (ConfigParser.NoOptionError, ConfigParser.NoSectionError):
cache_path = '.'
(script, ext) = os.path.splitext(os.path.basename(__file__))