Merge pull request #2070 from fvant/patch-7
We are copying from S3, the bucket is the source, not the target.
This commit is contained in:
commit
692781c936
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ def main():
|
||||||
# First, we check to see if the bucket exists, we get "bucket" returned.
|
# First, we check to see if the bucket exists, we get "bucket" returned.
|
||||||
bucketrtn = bucket_check(module, s3, bucket)
|
bucketrtn = bucket_check(module, s3, bucket)
|
||||||
if bucketrtn is False:
|
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.
|
# 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)
|
keyrtn = key_check(module, s3, bucket, obj, version=version)
|
||||||
|
|
Loading…
Reference in a new issue