Skip to content

Commit

Permalink
kill mount before stopping nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Oct 15, 2021
1 parent e80c2cf commit 645b739
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 645b739

Please sign in to comment.