Skip to content

Commit 3af72aa

Browse files
author
Dan Ellis
committed
Expand home paths from config settings.
1 parent 104401b commit 3af72aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ansible_toolkit/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def red(text):
2929
def get_vault_password():
3030
try:
3131
password_file = config.get('vault', 'password_file')
32-
with open(password_file, 'rb') as f:
32+
with open(os.path.expanduser(password_file), 'rb') as f:
3333
return f.read()
3434
except ConfigParser.NoSectionError:
3535
return None
@@ -39,7 +39,7 @@ def get_vault_password():
3939

4040
def get_inventory():
4141
try:
42-
inventory_path = config.get('inventory', 'path')
42+
inventory_path = os.path.expanduser(config.get('inventory', 'path'))
4343
except ConfigParser.NoSectionError:
4444
inventory_path = 'inventory'
4545
return Inventory(inventory_path, vault_password=get_vault_password())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
setup(name='ansible-toolkit',
5-
version='1.1',
5+
version='1.1.1',
66
description='The missing Ansible tools',
77
url='http://github.com/dellis23/ansible-toolkit',
88
author='Daniel Ellis',

0 commit comments

Comments
 (0)