Skip to content

[Output] Table format does not work consistently with show commands #705

Description

The following:
az vm show --ids {id} -o table works but az vm show --ids [multiple ids] -o table produces a table with one row full of None values. The reason is because the simple_output_query is expecting a single object, not an array of objects. Simply appending '[]' to the query will cause the multi-id form to succeed but the single object form to fail.

One solution would be to check the results format and wrap it in a list if it is an object. In this way the simple output query would always be written as for a list. Derek Bekoe (@derekbekoe), Johan Stenberg (ex-msft) (@johanste)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions