aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

prints additional None with --output text, --query and --max-items

Open gonrial opened this issue 3 years ago • 1 comments

Describe the bug

Running a command with --max-items, --output text and --query produce an additional line with the string None. Any other combination does not show that string.

Also appeared as #5654

Expected Behavior

arn:aws:ecs:<region>:<account>:task/<cluster>/<taskId>

Current Behavior

arn:aws:ecs:<region>:<account>:task/<cluster>/<taskId>
None <-----This is the extra string

Reproduction Steps

aws ecs list-tasks --cluster <cluster> --query 'taskArns' --output text --max-items 1

Where max-items should be n-1 elements from the existing tasks.

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.7.21

Environment details (OS name and version, etc.)

Python/3.9.11 Linux/5.15.0-43-generic exe/x86_64.ubuntu.22 prompt/off

gonrial avatar Aug 05 '22 04:08 gonrial

Hi @gonrial thanks for reaching out. I tried to reproduce this issue on v2.7.21 but wasn't able to. Could you share your debug logs (with any sensitive info redacted) by adding --debug to your command?

tim-finnigan avatar Aug 05 '22 15:08 tim-finnigan

Since we haven't heard back in a few weeks I'm going to close this issue. Please let us know if you're still encountering this issue and if so we can revisit it. Thanks!

tim-finnigan avatar Sep 15 '22 18:09 tim-finnigan

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Sep 15 '22 18:09 github-actions[bot]