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

Only apply transformer to table output for lab vm show #6104

Merged
merged 1 commit into from
Apr 13, 2018

Conversation

williexu
Copy link
Contributor


Fixes: #6089
Fixes: #5677

This checklist is used to make sure that common guidelines for a pull request are followed.

  • The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

@williexu williexu requested a review from troydai April 12, 2018 20:24
@promptws
Copy link

View a preview at https://prompt.ws/r/Azure/azure-cli/6104
This is an experimental preview for @microsoft users.

@williexu williexu added the Devtestlab az lab label Apr 12, 2018
@williexu williexu requested review from troydai and removed request for troydai April 12, 2018 20:27
@williexu
Copy link
Contributor Author

@ericwol-msft can you review?

@williexu williexu requested a review from tjprescott April 12, 2018 20:33
@@ -83,7 +83,7 @@ def load_command_table(self, _):
# Virtual Machine Operations Commands
with self.command_group('lab vm', virtual_machine_operations,
client_factory=get_devtestlabs_virtual_machine_operation) as g:
g.command('show', 'get', transform=transform_vm)
g.command('show', 'get', table_transformer=transform_vm)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, does this change also need to be applied to 'lab artifact-source show' and 'lab arm-template show', ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, let me double check and make sure all instances of transform and table_transformer are the same as what they were pre- knack conversion

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if this only applies to tables, I'd recommend changing the name of the callable to "transform_vm_table_output". That may have contributed to the original regression.

@troydai troydai merged commit f6d2cd2 into Azure:dev Apr 13, 2018
@williexu williexu deleted the labvmshow branch July 11, 2018 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'az lab vm show' only shows three properties DevTestLab VM artifact status broken post Azure CLI 2.0.25
6 participants