Issue #489: s3 should not fail on checksum mismtach when overwrite=no
This commit is contained in:
parent
9dd4f22430
commit
878ff1e929
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ def main():
|
||||||
if overwrite is True:
|
if overwrite is True:
|
||||||
download_s3file(module, s3, bucket, obj, dest)
|
download_s3file(module, s3, bucket, obj, dest)
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg="WARNING: Checksums do not match. Use overwrite parameter to force download.", failed=True)
|
module.exit_json(msg="WARNING: Checksums do not match. Use overwrite parameter to force download.", failed=False)
|
||||||
|
|
||||||
# Firstly, if key_matches is TRUE and overwrite is not enabled, we EXIT with a helpful message.
|
# Firstly, if key_matches is TRUE and overwrite is not enabled, we EXIT with a helpful message.
|
||||||
if sum_matches is True and overwrite is False:
|
if sum_matches is True and overwrite is False:
|
||||||
|
|
Loading…
Reference in a new issue