File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def red(text):
2929def 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
4040def 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 ())
Original file line number Diff line number Diff line change 22
33
44setup (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' ,
You can’t perform that action at this time.
0 commit comments