Expand tilde remotely in action plugins

This commit is contained in:
Toshio Kuratomi 2014-11-11 12:28:19 -08:00
parent fa953e162e
commit bc4272d2a2
7 changed files with 33 additions and 4 deletions

View file

@ -54,7 +54,7 @@ class ActionModule(object):
result = dict(failed=True, msg="src (or content) and dest are required")
return ReturnData(conn=conn, result=result)
dest = os.path.expanduser(dest) # CCTODO: Fix path for Windows hosts.
dest = self.runner._remote_expand_user(conn, dest, tmp) # CCTODO: Fix path for Windows hosts.
source = template.template(self.runner.basedir, os.path.expanduser(source), inject)
if copy:
if '_original_file' in inject: