From db6c6ec5c996312a603a3b0b1bbb91aee1b9e315 Mon Sep 17 00:00:00 2001 From: Frank van Tol Date: Mon, 14 Sep 2015 15:57:48 +0200 Subject: [PATCH] Update s3.py We are copying from S3, the bucket is the source, not the target. --- 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 cf1f1440864..ffa88855bcd 100644 --- a/lib/ansible/modules/cloud/amazon/s3.py +++ b/lib/ansible/modules/cloud/amazon/s3.py @@ -486,7 +486,7 @@ def main(): # First, we check to see if the bucket exists, we get "bucket" returned. bucketrtn = bucket_check(module, s3, bucket) if bucketrtn is False: - module.fail_json(msg="Target bucket cannot be found", failed=True) + module.fail_json(msg="Source bucket cannot be found", failed=True) # Next, we check to see if the key in the bucket exists. If it exists, it also returns key_matches md5sum check. keyrtn = key_check(module, s3, bucket, obj, version=version)