Skip to content

Commit

Permalink
Fixes: containers#13301 ("machine rm removes the mounted socket file …
Browse files Browse the repository at this point in the history
…on macos")

[NO NEW TESTS NEEDED]
Signed-off-by: Thibault Gagnaux <tgagnaux@gmail.com>
  • Loading branch information
tricktron authored and mheon committed Mar 30, 2022
1 parent 5aa6b69 commit 6d8d8fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,11 @@ func (v *MachineVM) Remove(name string, opts machine.RemoveOptions) (string, fun
if !opts.SaveImage {
files = append(files, v.ImagePath)
}
socketPath, err := v.getForwardSocketPath()
if err != nil {
logrus.Error(err)
}
files = append(files, socketPath)
files = append(files, v.archRemovalFiles()...)

if err := machine.RemoveConnection(v.Name); err != nil {
Expand Down

0 comments on commit 6d8d8fb

Please sign in to comment.