Skip to content

Commit

Permalink
Fixes ansible-collections#1607 - Catch botocore exception when gettin…
Browse files Browse the repository at this point in the history
…g bucket tags
  • Loading branch information
bingopriya committed Jul 27, 2023
1 parent 8216275 commit 3b8ae44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/modules/s3_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,8 @@ def get_current_object_tags_dict(module, s3, bucket, obj, version=None):
return {}
except is_boto3_error_code(("NoSuchTagSet", "NoSuchTagSetError")):
return {}
except botocore.exceptions.ClientError:
return {}
return boto3_tag_list_to_ansible_dict(current_tags)


Expand Down

0 comments on commit 3b8ae44

Please sign in to comment.