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
This commit is contained in:
parent
55e26fdfda
commit
14f67a4bf7
1 changed files with 1 additions and 1 deletions
2
cloud/s3
2
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')
|
||||
|
|
Loading…
Reference in a new issue