Skip to content
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

Merged

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Oct 19, 2023

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

@tremble tremble added the backport-6 PR should be backported to the stable-6 branch label Oct 19, 2023
@tremble tremble requested a review from alinabuzachis October 19, 2023 15:50
@tremble tremble marked this pull request as ready for review October 19, 2023 15:50
@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Oct 19, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/1ec618ecd633426682dbb7b936a66c2b

✔️ ansible-galaxy-importer SUCCESS in 5m 03s
✔️ build-ansible-collection SUCCESS in 12m 34s
✔️ ansible-test-splitter SUCCESS in 4m 39s
✔️ integration-amazon.aws-1 SUCCESS in 12m 25s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 985d8b1 into ansible-collections:main Oct 19, 2023
63 of 92 checks passed
@patchback
Copy link

patchback bot commented Oct 19, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/985d8b1cffb2bc2ee71f28afaad80612e7282d4a/pr-1813

Backported as #1814

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Oct 19, 2023
…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)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Oct 20, 2023
…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
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Nov 23, 2023
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
@tremble tremble deleted the issues/1607 branch January 12, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-6 PR should be backported to the stable-6 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

s3_object: NoSuchTagSet when s3 endpoint does not support tags
2 participants