-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3_object - fix NoSuchTagSet error when S3 endpoint doesn't support tags #1813
s3_object - fix NoSuchTagSet error when S3 endpoint doesn't support tags #1813
Conversation
Build succeeded (gate pipeline). ✔️ ansible-galaxy-importer SUCCESS in 5m 03s |
985d8b1
into
ansible-collections:main
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #1814 🤖 @patchback |
…ags (#1813) s3_object - fix NoSuchTagSet error when S3 endpoint doesn't support tags SUMMARY is_boto3_error_code only supports being passed a string or list. In the refactor of s3_object it was passed a tuple, so the errors weren't being cleanly caught. ISSUE TYPE Bugfix Pull Request COMPONENT NAME s3_object ADDITIONAL INFORMATION fixes: #1607 Reviewed-by: Alina Buzachis (cherry picked from commit 985d8b1)
…ags (#1813) (#1814) [PR #1813/985d8b1c backport][stable-6] s3_object - fix NoSuchTagSet error when S3 endpoint doesn't support tags This is a backport of PR #1813 as merged into main (985d8b1). SUMMARY is_boto3_error_code only supports being passed a string or list. In the refactor of s3_object it was passed a tuple, so the errors weren't being cleanly caught. ISSUE TYPE Bugfix Pull Request COMPONENT NAME s3_object ADDITIONAL INFORMATION fixes: #1607 Reviewed-by: Mark Chappell
is_boto3_error_code - support sets and tuples SUMMARY is_boto3_error_code currently supports checking for a list of codes, but if passed a set/tuple of error codes it always returns NeverEverRaisedException. See also #1813 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/module_utils/botocore.py ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
SUMMARY
is_boto3_error_code only supports being passed a string or list. In the refactor of s3_object it was passed a tuple, so the errors weren't being cleanly caught.
ISSUE TYPE
COMPONENT NAME
s3_object
ADDITIONAL INFORMATION
fixes: #1607