From 01514f33ba3ec4f54badf7d1297b85d05b24f59d Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Sun, 6 Mar 2022 15:32:47 +0100 Subject: Fixes: #13301 ("machine rm removes the mounted socket file on macos") [NO NEW TESTS NEEDED] Signed-off-by: Thibault Gagnaux --- pkg/machine/qemu/machine.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 9beec2173..8b567fb26 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -667,6 +667,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 { -- cgit v1.2.3-54-g00ecf