From fba1f7ef4288ac4cf4b35e5f0dee908ae081ce25 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 11 Jul 2013 17:27:17 -0400 Subject: [PATCH] Revert "expand vars like $HOME used in config values too" -- breaks remote_tmp if set. This reverts commit e5ff35bbdb84b70e7bfa13398b296f15089aaa48. --- lib/ansible/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index ee41d24a3ab..0d1e27c9cc5 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -70,7 +70,7 @@ def shell_expand_path(path): ''' shell_expand_path is needed as os.path.expanduser does not work when path is None, which is the default for ANSIBLE_PRIVATE_KEY_FILE ''' if path: - path = os.path.expandvars(os.path.expanduser(path)) + path = os.path.expanduser(path) return path p = load_config_file()