Correct NewAPIClient invocation

Two merges happened close to each other, the first changed the
signature of this function.
pull/1586/head
Matt Rickard 2017-06-14 11:13:04 -07:00
parent e524e8a9aa
commit 6ee3a941a9
1 changed files with 1 additions and 1 deletions

View File

@ -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)