From 14f67a4bf73ca7ad318fbef64b7b588ebbfb7a64 Mon Sep 17 00:00:00 2001 From: Jeremy Price Date: Thu, 19 Sep 2013 00:32:13 -0400 Subject: [PATCH] dest in s3 module does not work with ~username notation for home directories. Wrapped dest definition in os.path.expanduser() which will return the expanded path in case of successful tilde expansion and otherwise the original value --- cloud/s3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/s3 b/cloud/s3 index 062d6e06e48..5ebb71b319c 100644 --- a/cloud/s3 +++ b/cloud/s3 @@ -261,7 +261,7 @@ def main(): bucket = module.params.get('bucket') obj = module.params.get('object') src = module.params.get('src') - dest = module.params.get('dest') + dest = os.path.expanduser(module.params.get('dest')) mode = module.params.get('mode') expiry = int(module.params['expiry']) s3_url = module.params.get('s3_url')