From 1fb53e6aaf052c34b8715b1f4e9bbe38c3f1c95c Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Sat, 11 Feb 2017 09:54:22 -0800 Subject: [PATCH] Remove expanduser usage because of path type With the addition of the 'path' type, the usage of expanduser is redundant. This patch removes that extra usage. --- lib/ansible/modules/files/unarchive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/files/unarchive.py b/lib/ansible/modules/files/unarchive.py index 8e37e3d80f4..fbf372523e3 100644 --- a/lib/ansible/modules/files/unarchive.py +++ b/lib/ansible/modules/files/unarchive.py @@ -781,8 +781,8 @@ def main(): supports_check_mode = True, ) - src = os.path.expanduser(module.params['src']) - dest = os.path.expanduser(module.params['dest']) + src = module.params['src'] + dest = module.params['dest'] copy = module.params['copy'] remote_src = module.params['remote_src'] file_args = module.load_file_common_arguments(module.params)