diff options
author | Aditya Rajan <arajan@redhat.com> | 2021-09-30 15:01:31 +0530 |
---|---|---|
committer | Aditya Rajan <arajan@redhat.com> | 2021-09-30 16:16:07 +0530 |
commit | 5a33b7aef8464bf9c16495961e4aa071051bcfaf (patch) | |
tree | 2d1e6c184c2e10a8718dc3d89ee4e3e4700982ae /pkg/machine | |
parent | b187dfef20df5cd853b46fe7f56d7cfae4ea0bf5 (diff) | |
download | podman-5a33b7aef8464bf9c16495961e4aa071051bcfaf.tar.gz podman-5a33b7aef8464bf9c16495961e4aa071051bcfaf.tar.bz2 podman-5a33b7aef8464bf9c16495961e4aa071051bcfaf.zip |
machine: Info on successfully stopping qemu machine
Spit info log whenever we successfully stop qemu machine for ack.
Closes: https://github.com/containers/podman/issues/11542
[NO TESTS NEEDED]
Signed-off-by: Aditya Rajan <arajan@redhat.com>
Diffstat (limited to 'pkg/machine')
-rw-r--r-- | pkg/machine/qemu/machine.go | 7 |
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 |