From 4e9c061b356b8ddb111ca2ce3f3b44c2c800e27f Mon Sep 17 00:00:00 2001
From: James Cammarata <jimi@sngx.net>
Date: Tue, 23 Sep 2014 15:36:24 -0500
Subject: [PATCH] Also make sure the dest param is expanded locally before
 recalculating

---
 lib/ansible/runner/action_plugins/fetch.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ansible/runner/action_plugins/fetch.py b/lib/ansible/runner/action_plugins/fetch.py
index 3ac8b6f6340..80e8a89936f 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