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 committed Mar 6, 2022
1 parent 0987b7f commit 95e322b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,14 @@ 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 {
logrus.Error(err)
}
Expand Down

0 comments on commit 95e322b

Please sign in to comment.