Correct NewAPIClient invocation
Two merges happened close to each other, the first changed the signature of this function.pull/1586/head
parent
e524e8a9aa
commit
6ee3a941a9
|
@ -36,7 +36,7 @@ var updateContextCmd = &cobra.Command{
|
||||||
Long: `Retrieves the IP address of the running cluster, checks it
|
Long: `Retrieves the IP address of the running cluster, checks it
|
||||||
with IP in kubeconfig, and corrects kubeconfig if incorrect.`,
|
with IP in kubeconfig, and corrects kubeconfig if incorrect.`,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
api, err := machine.NewAPIClient(clientType)
|
api, err := machine.NewAPIClient()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "Error getting client: %s\n", err)
|
fmt.Fprintf(os.Stderr, "Error getting client: %s\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
Loading…
Reference in New Issue