-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
View a preview at https://prompt.ws/r/Azure/azure-cli/6104 |
@ericwol-msft can you review? |
@@ -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) |
There was a problem hiding this comment.
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', ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
other regressions
Fixes: #6089
Fixes: #5677
This checklist is used to make sure that common guidelines for a pull request are followed.