Skip to content

Commit

Permalink
Merge pull request #20402 from baude/applehvrmstopgvproxy
Browse files Browse the repository at this point in the history
Kill gvproxy when machine rm -f
  • Loading branch information
openshift-ci[bot] authored Oct 18, 2023
2 parents 62a81a1 + d4d7647 commit 6c7104c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/machine/applehv/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6c7104c

Please sign in to comment.