File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ var ProfileCmd = &cobra.Command{
71
71
out .SuccessT ("Skipped switching kubectl context for {{.profile_name}} because --keep-context was set." , out.V {"profile_name" : profile })
72
72
out .SuccessT ("To connect to this cluster, use: kubectl --context={{.profile_name}}" , out.V {"profile_name" : profile })
73
73
} else {
74
- err := kubeconfig .SetCurrentContext (constants .KubeconfigPath , profile )
74
+ err := kubeconfig .SetCurrentContext (profile , constants .KubeconfigPath )
75
75
if err != nil {
76
76
out .ErrT (out .Sad , `Error while setting kubectl current context : {{.error}}` , out.V {"error" : err })
77
77
}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ func runStop(cmd *cobra.Command, args []string) {
77
77
}
78
78
79
79
machineName := pkg_config .GetMachineName ()
80
- err = kubeconfig .UnsetCurrentContext (constants .KubeconfigPath , machineName )
80
+ err = kubeconfig .UnsetCurrentContext (machineName , constants .KubeconfigPath )
81
81
if err != nil {
82
82
exit .WithError ("update config" , err )
83
83
}
You can’t perform that action at this time.
0 commit comments