mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Merge pull request #4457 from mbarrin/devel
Fixed crash when s3 bucket did not exist for put operation
This commit is contained in:
commit
861779bb6e
1 changed files with 2 additions and 1 deletions
|
@ -371,6 +371,7 @@ def main():
|
||||||
|
|
||||||
# Lets check to see if bucket exists to get ground truth.
|
# Lets check to see if bucket exists to get ground truth.
|
||||||
bucketrtn = bucket_check(module, s3, bucket)
|
bucketrtn = bucket_check(module, s3, bucket)
|
||||||
|
if bucketrtn is True:
|
||||||
keyrtn = key_check(module, s3, bucket, obj)
|
keyrtn = key_check(module, s3, bucket, obj)
|
||||||
|
|
||||||
# Lets check key state. Does it exist and if it does, compute the etag md5sum.
|
# Lets check key state. Does it exist and if it does, compute the etag md5sum.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue