You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the same command with the same query is returning two different responses only for setting the --output flag to text. I am not sure if this is the intended behaviour but I don't really understand the reason.
Select this option if this issue appears to be a regression.
Expected Behavior
Return same amount of items and same information when --output test flag is set and when it is not.
Current Behavior
When no --output flag is set, or when is set to json, only one result is appearing. When --output is set to text, two results are appearing.
Reproduction Steps
We haven't encountered this issue ever and we have been using the exact same command for years. Only difference I see now is that the two images where pushed with only 17 minutes apart from each other.
Hmm that looks like the same cause, yes. Many thanks for bringing that up I didnt saw it.
I would also add some bit of information after more testing we did. This only is appearing in the ECR repository in which we are using the docker labels in the images. This is a new development we are doing but we didn't think that should change that awscli response 🤔
We ended up doing the same as I can see now in your issue, in this comment.
Many thanks, I will close the issue because as I can see it is not intended to be changed, even though it is pretty confusing behaviour.
This issue is now closed. 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.
Describe the bug
So the issue I have encountered is this:
aws ecr describe-images --repository-name my-repo --query "sort_by(imageDetails,& imagePushedAt)[-1]" --no-cli-pager
Output:
aws ecr describe-images --repository-name my-repo --query "sort_by(imageDetails,& imagePushedAt)[-1]" --output text --no-cli-pager
Output:
So the same command with the same query is returning two different responses only for setting the --output flag to text. I am not sure if this is the intended behaviour but I don't really understand the reason.
aws --version
Output:
aws-cli/2.22.14 Python/3.12.6 Darwin/23.6.0 exe/x86_64
Regression Issue
Expected Behavior
Return same amount of items and same information when --output test flag is set and when it is not.
Current Behavior
When no --output flag is set, or when is set to json, only one result is appearing. When --output is set to text, two results are appearing.
Reproduction Steps
We haven't encountered this issue ever and we have been using the exact same command for years. Only difference I see now is that the two images where pushed with only 17 minutes apart from each other.
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.22.14 Python/3.12.6 Darwin/23.6.0 exe/x86_64
Environment details (OS name and version, etc.)
MacOS Sonoma 14.6
The text was updated successfully, but these errors were encountered: