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

Issue #3079: Initializing key_exists in case the S3 bucket does not exist

This commit is contained in:
Shahar Kedar 2013-05-31 16:37:37 +03:00
parent 4a5b567f0c
commit fe6ca38bec

View file

@ -174,6 +174,7 @@ def main():
key_name = dest key_name = dest
# Check to see if the key already exists # Check to see if the key already exists
key_exists = False
if bucket_exists is True: if bucket_exists is True:
try: try:
key_check = bucket.get_key(key_name) key_check = bucket.get_key(key_name)