From 98f036ec7270dcd483d5b6f39113350a33f6ff15 Mon Sep 17 00:00:00 2001 From: Luciano Veiga Date: Tue, 28 Jul 2026 22:18:29 -0300 Subject: [PATCH] fix: resume token hint no longer affected by --query in text formatter 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 #10449 --- awscli/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awscli/formatter.py b/awscli/formatter.py index e13b6fd72c62..c882f4cca461 100644 --- a/awscli/formatter.py +++ b/awscli/formatter.py @@ -248,7 +248,7 @@ def __call__(self, command_name, response, stream=None): if response.resume_token: # Tell the user about the next token so they can continue # if they want. - self._format_response( + text.format_text( {'NextToken': {'NextToken': response.resume_token}}, stream, )