Skip to content

Commit

Permalink
Merge pull request #5439 from afbjorklund/current-context
Browse files Browse the repository at this point in the history
Fix order of parameters to CurrentContext funcs
  • Loading branch information
tstromberg authored Sep 27, 2019
2 parents ac84d68 + 18a7f4c commit 90bf0f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var ProfileCmd = &cobra.Command{
out.SuccessT("Skipped switching kubectl context for {{.profile_name}} because --keep-context was set.", out.V{"profile_name": profile})
out.SuccessT("To connect to this cluster, use: kubectl --context={{.profile_name}}", out.V{"profile_name": profile})
} else {
err := kubeconfig.SetCurrentContext(constants.KubeconfigPath, profile)
err := kubeconfig.SetCurrentContext(profile, constants.KubeconfigPath)
if err != nil {
out.ErrT(out.Sad, `Error while setting kubectl current context : {{.error}}`, out.V{"error": err})
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func runStop(cmd *cobra.Command, args []string) {
}

machineName := pkg_config.GetMachineName()
err = kubeconfig.UnsetCurrentContext(constants.KubeconfigPath, machineName)
err = kubeconfig.UnsetCurrentContext(machineName, constants.KubeconfigPath)
if err != nil {
exit.WithError("update config", err)
}
Expand Down

0 comments on commit 90bf0f8

Please sign in to comment.