Skip to content

Commit

Permalink
Merge pull request #6774 from vikkyomkar/issue-6767
Browse files Browse the repository at this point in the history
Fix: do not change the profile to a none existing profile
  • Loading branch information
medyagh authored Feb 28, 2020
2 parents 4677bce + 9d87d64 commit 3f34e68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/minikube/cmd/config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ var ProfileCmd = &cobra.Command{
}

if !pkgConfig.ProfileExists(profile) {
out.FailureT("if you want to create a profile you can by this command: minikube start -p {{.profile_name}}", out.V{"profile_name": profile})
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})
os.Exit(0)
}

err := Set(pkgConfig.MachineProfile, profile)
Expand Down

0 comments on commit 3f34e68

Please sign in to comment.