Skip to content

Commit

Permalink
machine: Info on successfully stopping qemu machine
Browse files Browse the repository at this point in the history
Spit info log whenever we successfully stop qemu machine for ack.
Closes: containers#11542

[NO TESTS NEEDED]

Signed-off-by: Aditya Rajan <[email protected]>
  • Loading branch information
flouthoc committed Sep 30, 2021
1 parent b187dfe commit 5a33b7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a33b7a

Please sign in to comment.