Skip to content

Fix waiter error matcher to handle boolean acceptors#3362

Merged
jterapin merged 2 commits intoversion-3from
waiter_bool_fix
Mar 17, 2026
Merged

Fix waiter error matcher to handle boolean acceptors#3362
jterapin merged 2 commits intoversion-3from
waiter_bool_fix

Conversation

@jterapin
Copy link
Contributor

Some waiter models (Lambda FunctionExists, ACM-PCA CertificateAuthorityCSRCreated, CertificateIssued) define the error matcher's expected value as a boolean (false) instead of a string ("false").

The matches_error? method in Poller only matched against string values in its case/when, so boolean expected values fell through to the else branch, causing the acceptor to silently never match. This resulted in unnecessary retries until max attempts.

This change adds boolean literals alongside the existing string variants in the when clauses so both types are handled correctly.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

  1. To make sure we include your contribution in the release notes, please make sure to add description entry for your changes in the "unreleased changes" section of the CHANGELOG.md file (at corresponding gem). For the description entry, please make sure it lives in one line and starts with Feature or Issue in the correct format.

  2. For generated code changes, please checkout below instructions first:
    https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md

Thank you for your contribution!

@jterapin jterapin merged commit a616f66 into version-3 Mar 17, 2026
30 checks passed
@jterapin jterapin deleted the waiter_bool_fix branch March 17, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants