Merge pull request #20402 from baude/applehvrmstopgvproxy

Kill gvproxy when machine rm -f
This commit is contained in:
openshift-ci[bot]
2023-10-18 19:18:32 +00:00
committed by GitHub

View File

@ -397,6 +397,11 @@ func (m *MacMachine) Remove(name string, opts machine.RemoveOptions) (string, fu
if err := m.Vfkit.stop(true, true); err != nil {
return "", nil, err
}
defer func() {
if err := machine.CleanupGVProxy(m.GvProxyPid); err != nil {
logrus.Error(err)
}
}()
}
files = m.collectFilesToDestroy(opts)