Skip to content

Commit 3f34e68

Browse files
authored
Merge pull request #6774 from vikkyomkar/issue-6767
Fix: do not change the profile to a none existing profile
2 parents 4677bce + 9d87d64 commit 3f34e68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/minikube/cmd/config/profile.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ var ProfileCmd = &cobra.Command{
6565
}
6666

6767
if !pkgConfig.ProfileExists(profile) {
68-
out.FailureT("if you want to create a profile you can by this command: minikube start -p {{.profile_name}}", out.V{"profile_name": profile})
68+
out.ErrT(out.Tip, `if you want to create a profile you can by this command: minikube start -p {{.profile_name}}`, out.V{"profile_name": profile})
69+
os.Exit(0)
6970
}
7071

7172
err := Set(pkgConfig.MachineProfile, profile)

0 commit comments

Comments
 (0)