From 878ff1e9296ab55d346842747038e28fe2075e48 Mon Sep 17 00:00:00 2001 From: Peter Gehres Date: Wed, 10 Dec 2014 10:50:16 -0800 Subject: [PATCH] Issue #489: s3 should not fail on checksum mismtach when overwrite=no --- lib/ansible/modules/cloud/amazon/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/s3.py b/lib/ansible/modules/cloud/amazon/s3.py index 7b914dd9117..c91cc262367 100644 --- a/lib/ansible/modules/cloud/amazon/s3.py +++ b/lib/ansible/modules/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: