summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Gehres <peter.gehres@appdynamics.com>2014-12-10 10:50:16 -0800
committerPeter Gehres <peter.gehres@appdynamics.com>2014-12-10 10:50:16 -0800
commit05ca85a172d6d186fefe5e5dcb36c6157c34730c (patch)
treeb40899c9dee871aad3a1eccf66165c9b2885f6b0
parent7e2fbec9448395be290f1e889994ffdafc9482ee (diff)
downloadansible-modules-core-05ca85a172d6d186fefe5e5dcb36c6157c34730c.tar.gz
Issue #489: s3 should not fail on checksum mismtach when overwrite=no
-rw-r--r--cloud/amazon/s3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/amazon/s3.py b/cloud/amazon/s3.py
index 7b914dd9..c91cc262 100644
--- a/cloud/amazon/s3.py
+++ b/cloud/amazon/s3.py
@@ -376,7 +376,7 @@ def main():
if overwrite is True:
download_s3file(module, s3, bucket, obj, dest)
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.
if sum_matches is True and overwrite is False: