Skip to content

Commit

Permalink
Fix to not execute clusterBootstrapper.Delete when clusterBootstrappe…
Browse files Browse the repository at this point in the history
…r is nil kubernetes#3662
  • Loading branch information
u5surf committed Feb 13, 2019
1 parent 414b8ab commit 00aff60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ associated files.`,
bsName := viper.GetString(cmdcfg.Bootstrapper) // Name ?
console.OutStyle("resetting", "Reverting Kubernetes %s using %s ...", kc.KubernetesVersion, bsName)
clusterBootstrapper, err := GetClusterBootstrapper(api, viper.GetString(cmdcfg.Bootstrapper))
if err != nil {
if err == nil {
if err = clusterBootstrapper.DeleteCluster(kc); err != nil {
console.ErrLn("Failed to delete cluster: %v", err)
}
Expand Down

0 comments on commit 00aff60

Please sign in to comment.