From 32a2636dc72aa5d8a0af752cfb4fda0121122c59 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 26 Feb 2014 15:18:27 -0600 Subject: [PATCH] Add expanduser calls on src/dest in the module too --- library/files/copy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/files/copy b/library/files/copy index 50ebbb14c04..d961764772a 100644 --- a/library/files/copy +++ b/library/files/copy @@ -113,8 +113,8 @@ def main(): add_file_common_args=True, ) - src = module.params['src'] - dest = module.params['dest'] + src = os.path.expanduser(module.params['src']) + dest = os.path.expanduser(module.params['dest']) backup = module.params['backup'] force = module.params['force'] original_basename = module.params.get('original_basename',None)