if setting client_config_dir to '~', expand path

This commit is contained in:
Bastiaan Bakker 2015-05-18 22:40:23 +02:00 committed by rallytime
parent b1c98a38ed
commit 8ce59a2e16

View File

@ -2182,7 +2182,7 @@ def client_config(path, env_var='SALT_CLIENT_CONFIG', defaults=None):
client_config_dir = xdg_dir
saltrc_config_file = 'saltrc'
else:
client_config_dir = '~'
client_config_dir = os.path.expanduser('~')
saltrc_config_file = '.saltrc'
# Get the token file path from the provided defaults. If not found, specify