Merge pull request #12716 from spowelljr/fixHyperVStop
Kill mount process before stopping nodespull/12730/head
commit
c073e65c6d
|
@ -130,6 +130,10 @@ func stopProfile(profile string) int {
|
||||||
api, cc := mustload.Partial(profile)
|
api, cc := mustload.Partial(profile)
|
||||||
defer api.Close()
|
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 {
|
for _, n := range cc.Nodes {
|
||||||
machineName := config.MachineName(*cc, n)
|
machineName := config.MachineName(*cc, n)
|
||||||
|
|
||||||
|
@ -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 !keepActive {
|
||||||
if err := kubeconfig.DeleteContext(profile, kubeconfig.PathFromEnv()); err != nil {
|
if err := kubeconfig.DeleteContext(profile, kubeconfig.PathFromEnv()); err != nil {
|
||||||
exit.Error(reason.HostKubeconfigDeleteCtx, "delete ctx", err)
|
exit.Error(reason.HostKubeconfigDeleteCtx, "delete ctx", err)
|
||||||
|
|
Loading…
Reference in New Issue