Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--output and --query global args not working with v2.30.0 on macOS #20327

Closed
mouellet opened this issue Nov 14, 2021 · 3 comments
Closed

--output and --query global args not working with v2.30.0 on macOS #20327

mouellet opened this issue Nov 14, 2021 · 3 comments
Assignees
Labels
Core CLI core infrastructure customer-reported Issues that are reported by GitHub users external to the Azure organization.

Comments

@mouellet
Copy link

Describe the bug

Since upgrading to v2.30.0, --output and --query args don't apply anymore.

To Reproduce

$ az extension list-available --query "[?name=='azure-devops'].{Name:name}" --output table
[
  {
    "experimental": true,
    "installed": false,
    "name": "account",
    "preview": false,
    "summary": "Microsoft Azure Command-Line Tools SubscriptionClient Extension",
    "version": "0.2.1"
  },
  {
    "experimental": false,
    "installed": false,
    "name": "acrtransfer",
    "preview": true,
    "summary": "Microsoft Azure Command-Line Tools Acrtransfer Extension",
    "version": "1.0.0"
  },
  ...
]

Result is the same when using --query or --output alone (az extension list-available --query "[?name=='azure-devops'].{Name:name}" or az extension list-available --output table).

Expected behavior

$ az extension list-available --query "[?name=='azure-devops'].{Name:name}" --output table
Name
------------
azure-devops

Environment summary

  • Install Method: brew install azure-cli
  • CLI version: 2.30.0
  • OS version: macOS Big Sur
  • Shell Type: Bash

Additional context

az extension list-available command is used as an example, but the issue is present on all other commands.

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Nov 14, 2021
@yonzhan yonzhan added the Core CLI core infrastructure label Nov 14, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 14, 2021
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Nov 14, 2021
@yonzhan yonzhan added this to the Backlog milestone Nov 14, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 14, 2021

@jiasli for awareness

@ToxicWar
Copy link

The same issue in Alpine (Docker image: python:3.9-alpine3.13)

Simple az account list -o table shows JSON output instead of table

Environment summary

Install Method: pip install azure-cli==2.30.0
CLI version: 2.30.0
OS version: alpine3.13
Shell Type: Bash

@jiasli
Copy link
Member

jiasli commented Nov 15, 2021

This issue is caused by a regression in Python 3.9.8. Let's work on #20269.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core CLI core infrastructure customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

4 participants