Azure / azure-capi-cli-extension

Kubernetes Cluster API support in the Azure CLI
MIT License
20 stars 18 forks source link

Fix tab completion for --name #165

Closed mboersma closed 1 year ago

mboersma commented 1 year ago

Description

Tab completion for the --name|-n parameter broke silently because cmd was None.

The completer's code path from get_workflow_clusters_completion_list ends up calling the tab_separated_output function which references cmd.cli_ctx. This presumably raised an error which was swallowed by the CLI framework. Passing the cmd through works.

History Notes


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