Skip to content

fix: resume token hint no longer affected by --query in text formatter - #10513

Open
luciano-veiga wants to merge 1 commit into
aws:developfrom
luciano-veiga:fix/10449-text-formatter-resume-token
Open

fix: resume token hint no longer affected by --query in text formatter#10513
luciano-veiga wants to merge 1 commit into
aws:developfrom
luciano-veiga:fix/10449-text-formatter-resume-token

Conversation

@luciano-veiga

Copy link
Copy Markdown

Description

When using --output text\ with --query\ on paginated commands, the resume token hint (NEXTTOKEN) was incorrectly processed through the JMESPath query expression, resulting in a spurious \None\ line being printed.

The resume token hint is pagination metadata, not part of the result set, so it should bypass --query\ filtering.

Fix

Call \ ext.format_text\ directly instead of _format_response\ when rendering the resume token hint, since _format_response\ applies the --query\ filter.

Related

Fixes #10449


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

When using --output text with --query on paginated commands,
a spurious 'None' line was printed due to the resume token hint
being processed through the JMESPath query expression.

The resume token hint is pagination metadata, not part of the result
set, so it should bypass --query filtering.

Fix by calling text.format_text directly instead of _format_response
which applies the --query filter.

Fixes aws#10449
@luciano-veiga
luciano-veiga requested a review from a team as a code owner July 29, 2026 01:18
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.

Bug Report: aws --output text with --query prints a spurious None line for the pagination resume-token hint

1 participant