mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 09:13:12 +00:00
Issue #3079: Initializing key_exists in case the S3 bucket does not exist
This commit is contained in:
@@ -173,7 +173,8 @@ def main():
|
||||
else:
|
||||
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:
|
||||
try:
|
||||
key_check = bucket.get_key(key_name)
|
||||
|
||||
Reference in New Issue
Block a user