提交 04ef46c4 编写于 作者: M Matt Rickard 提交者: GitHub

Merge pull request #1586 from r2d4/apifix

Correct NewAPIClient invocation
......@@ -36,7 +36,7 @@ var updateContextCmd = &cobra.Command{
Long: `Retrieves the IP address of the running cluster, checks it
with IP in kubeconfig, and corrects kubeconfig if incorrect.`,
Run: func(cmd *cobra.Command, args []string) {
api, err := machine.NewAPIClient(clientType)
api, err := machine.NewAPIClient()
if err != nil {
fmt.Fprintf(os.Stderr, "Error getting client: %s\n", err)
os.Exit(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册