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>
This commit is contained in:
Aditya Rajan 2021-09-30 15:01:31 +05:30
parent b187dfef20
commit 5a33b7aef8
No known key found for this signature in database
GPG Key ID: 8E5A8A19DF7C8673
1 changed files with 6 additions and 1 deletions

View File

@ -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