summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-30 12:33:53 -0400
committerGitHub <noreply@github.com>2021-09-30 12:33:53 -0400
commitf313ff46d62dc6a4b58ecc3fc6fb39aafcb49aa3 (patch)
treebce389c587a3c0ca711baa00fd4cdff01172105a
parent966b6030fa5cc31c163e344b64109eddeffc3529 (diff)
parent5a33b7aef8464bf9c16495961e4aa071051bcfaf (diff)
downloadpodman-f313ff46d62dc6a4b58ecc3fc6fb39aafcb49aa3.tar.gz
podman-f313ff46d62dc6a4b58ecc3fc6fb39aafcb49aa3.tar.bz2
podman-f313ff46d62dc6a4b58ecc3fc6fb39aafcb49aa3.zip
Merge pull request #11801 from flouthoc/podman-machine-stop-info
machine: Info on successfully stopping qemu machine
-rw-r--r--pkg/machine/qemu/machine.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 09078fbfb..c4e6aa611 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -392,7 +392,12 @@ func (v *MachineVM) Stop(name string, _ machine.StopOptions) error {
logrus.Warn(err)
}
// Remove socket
- return os.Remove(qemuSocketFile)
+ if err := os.Remove(qemuSocketFile); err != nil {
+ return err
+ }
+
+ fmt.Printf("Successfully stopped machine: %s", name)
+ return nil
}
// NewQMPMonitor creates the monitor subsection of our vm