From 4e206e3790d7239c1a909a921cc3f22253b1470b Mon Sep 17 00:00:00 2001 From: Benno Joy Date: Thu, 14 May 2015 09:03:50 +0530 Subject: [PATCH] Fixes issue 1197 for s3 module, where the file gets downloaded even if checksums match --- cloud/amazon/s3.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cloud/amazon/s3.py b/cloud/amazon/s3.py index 50ef9d03f54..5c55fae264b 100644 --- a/cloud/amazon/s3.py +++ b/cloud/amazon/s3.py @@ -331,6 +331,12 @@ def main(): s3_url = module.params.get('s3_url') src = module.params.get('src') + if overwrite not in ['always', 'never', 'different']: + if module.boolean(overwrite): + overwrite = 'always' + else: + overwrite='never' + if overwrite not in ['always', 'never', 'different']: if module.boolean(overwrite): overwrite = 'always'