Fixes issue 1197 for s3 module, where the file gets downloaded even if checksums match

This commit is contained in:
Benno Joy 2015-05-14 09:03:50 +05:30 committed by Toshio Kuratomi
parent d796e8f54f
commit 4e206e3790

View file

@ -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'