Skip to content

Commit

Permalink
Merge pull request #12716 from spowelljr/fixHyperVStop
Browse files Browse the repository at this point in the history
Kill mount process before stopping nodes
  • Loading branch information
spowelljr authored Oct 18, 2021
2 parents eff986b + 645b739 commit c073e65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/minikube/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ func stopProfile(profile string) int {
api, cc := mustload.Partial(profile)
defer api.Close()

if err := killMountProcess(); err != nil {
out.WarningT("Unable to kill mount process: {{.error}}", out.V{"error": err})
}

for _, n := range cc.Nodes {
machineName := config.MachineName(*cc, n)

Expand All @@ -139,10 +143,6 @@ func stopProfile(profile string) int {
}
}

if err := killMountProcess(); err != nil {
out.WarningT("Unable to kill mount process: {{.error}}", out.V{"error": err})
}

if !keepActive {
if err := kubeconfig.DeleteContext(profile, kubeconfig.PathFromEnv()); err != nil {
exit.Error(reason.HostKubeconfigDeleteCtx, "delete ctx", err)
Expand Down

0 comments on commit c073e65

Please sign in to comment.