From 888c8614fb12fc8035eeb76ed745ecd898ffdf26 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Mon, 13 Feb 2017 14:52:25 -0800 Subject: [PATCH] Removes expanduser calls The usage of type='path' includes the expanduser call itself. This patch removes its duplicate usage. Related to #12263 --- lib/ansible/modules/files/replace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/replace.py b/lib/ansible/modules/files/replace.py index 5248e67bcb8..059d05d9724 100644 --- a/lib/ansible/modules/files/replace.py +++ b/lib/ansible/modules/files/replace.py @@ -155,7 +155,7 @@ def main(): ) params = module.params - path = os.path.expanduser(params['path']) + path = params['path'] res_args = dict() if os.path.isdir(path):