summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2014-09-23 15:36:24 -0500
committerJames Cammarata <jimi@sngx.net>2014-09-23 15:36:24 -0500
commit4e9c061b356b8ddb111ca2ce3f3b44c2c800e27f (patch)
tree01d4a6b707afc3826b67dfc91ffc3a6e82f33749
parente47f6137e5b897dec4319e7cb7791fb9b2cffb8d (diff)
downloadansible-4e9c061b356b8ddb111ca2ce3f3b44c2c800e27f.tar.gz
Also make sure the dest param is expanded locally before recalculating
-rw-r--r--lib/ansible/runner/action_plugins/fetch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/runner/action_plugins/fetch.py b/lib/ansible/runner/action_plugins/fetch.py
index 3ac8b6f634..80e8a89936 100644
--- a/lib/ansible/runner/action_plugins/fetch.py
+++ b/lib/ansible/runner/action_plugins/fetch.py
@@ -83,6 +83,7 @@ class ActionModule(object):
else:
source_local = source
+ dest = os.path.expanduser(dest)
if flat:
if dest.endswith("/"):
# if the path ends with "/", we'll use the source filename as the