From 2a383786dda08c750ffd3ef962754944e3a3e243 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 26 Feb 2014 15:29:00 -0600 Subject: [PATCH] And remove the expanduser calls from the action_plugin --- lib/ansible/runner/action_plugins/copy.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/ansible/runner/action_plugins/copy.py b/lib/ansible/runner/action_plugins/copy.py index a24b0ae67fe..0ee9b6f3ced 100644 --- a/lib/ansible/runner/action_plugins/copy.py +++ b/lib/ansible/runner/action_plugins/copy.py @@ -61,15 +61,10 @@ class ActionModule(object): result=dict(failed=True, msg="src and content are mutually exclusive") return ReturnData(conn=conn, result=result) - # Check if the source ends with a "/" and - # expand any tildes that may be in the path + # Check if the source ends with a "/" source_trailing_slash = False if source: source_trailing_slash = source.endswith("/") - source = os.path.expanduser(source) - # And expand the path for the destination - if dest: - dest = os.path.expanduser(dest) # Define content_tempfile in case we set it after finding content populated. content_tempfile = None