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'