1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed crash when s3 bucket did not exist for put operation

This commit is contained in:
Matthew Barrington 2013-10-11 16:01:54 +01:00
parent 3f968ff46a
commit ce0bf71245

View file

@ -371,6 +371,7 @@ def main():
# Lets check to see if bucket exists to get ground truth.
bucketrtn = bucket_check(module, s3, bucket)
if bucketrtn is True:
keyrtn = key_check(module, s3, bucket, obj)
# Lets check key state. Does it exist and if it does, compute the etag md5sum.