Skip to content

fix(parameters): fix variable shadowing in SSM parameter chunking#8006

Merged
dreamorosi merged 1 commit intodevelopfrom
fix/ssm-parameter-chunking-bug
Feb 25, 2026
Merged

fix(parameters): fix variable shadowing in SSM parameter chunking#8006
dreamorosi merged 1 commit intodevelopfrom
fix/ssm-parameter-chunking-bug

Conversation

@dreamorosi
Copy link
Contributor

Issue number: closes #7832

Summary

Changes

Fixed variable shadowing bug in _get_parameters_by_name_in_chunks where the response variable was being overwritten on each loop iteration instead of accumulating results from all chunks.

  • Changed response, possible_errors = self._get_parameters_by_name(...) to chunk_response, possible_errors = self._get_parameters_by_name(...)
  • Changed response.update(response) to response.update(chunk_response)
  • Added test to verify all parameters are returned when fetching more than 10 parameters

User experience

Before: When calling get_parameters_by_name with more than 10 parameters, only the last chunk (up to 10 parameters) was returned.

After: All requested parameters are correctly returned regardless of batch size.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Fixes bug where get_parameters_by_name returned only the last chunk
when fetching more than 10 parameters due to variable shadowing in
_get_parameters_by_name_in_chunks loop.

Closes #7832
@dreamorosi dreamorosi requested a review from a team as a code owner February 25, 2026 11:37
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 25, 2026
@boring-cyborg boring-cyborg bot added the tests label Feb 25, 2026
@dreamorosi dreamorosi self-assigned this Feb 25, 2026
@github-actions github-actions bot added the bug Something isn't working label Feb 25, 2026
@sonarqubecloud
Copy link

Copy link
Contributor

@ConnorKirk ConnorKirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dreamorosi dreamorosi merged commit ea5c094 into develop Feb 25, 2026
18 checks passed
@dreamorosi dreamorosi deleted the fix/ssm-parameter-chunking-bug branch February 25, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: [ssm] cannot get more than 10 parameters

2 participants