Skip to content

Commit

Permalink
Merge pull request #7553 from govargo/fix-delete-nodename
Browse files Browse the repository at this point in the history
Fix `minikube delete` output nodename missing with KIC driver
  • Loading branch information
medyagh authored Apr 10, 2020
2 parents 527bbcd + 903fe74 commit a604a82
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/minikube/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,13 @@ func deleteProfileContainersAndVolumes(name string) {

func deleteProfile(profile *config.Profile) error {
viper.Set(config.ProfileName, profile.Name)
deleteProfileContainersAndVolumes(profile.Name)
if profile.Config != nil {
// if driver is oci driver, delete containers and volumes
if driver.IsKIC(profile.Config.Driver) {
out.T(out.DeletingHost, `Deleting "{{.profile_name}}" in {{.driver_name}} ...`, out.V{"profile_name": profile.Name, "driver_name": profile.Config.Driver})
deleteProfileContainersAndVolumes(profile.Name)
}
}

api, err := machine.NewAPIClient()
if err != nil {
Expand Down

0 comments on commit a604a82

Please sign in to comment.