mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3080 from bigpandaio/devel
Issue #3079: Initializing key_exists in case the S3 bucket does not exis...
This commit is contained in:
commit
f9ddfc6cab
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue