summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Gagnaux <tgagnaux@gmail.com>2022-03-06 15:32:47 +0100
committerMatthew Heon <mheon@redhat.com>2022-03-30 13:41:15 -0400
commit6d8d8fb7186628bd6781ee37439752e234319b3e (patch)
tree643a1ba8d45071ce2e4c6a4388191441809c4834
parent5aa6b6919874815a12d28aaf1262bb3ec1de3be4 (diff)
downloadpodman-6d8d8fb7186628bd6781ee37439752e234319b3e.tar.gz
podman-6d8d8fb7186628bd6781ee37439752e234319b3e.tar.bz2
podman-6d8d8fb7186628bd6781ee37439752e234319b3e.zip
Fixes: #13301 ("machine rm removes the mounted socket file on macos")
[NO NEW TESTS NEEDED] Signed-off-by: Thibault Gagnaux <tgagnaux@gmail.com>
-rw-r--r--pkg/machine/qemu/machine.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index faf01b9ad..d30e51215 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -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 {