Skip to content

Commit

Permalink
Merge pull request #11801 from flouthoc/podman-machine-stop-info
Browse files Browse the repository at this point in the history
machine: Info on successfully stopping qemu machine
  • Loading branch information
openshift-merge-robot authored Sep 30, 2021
2 parents 966b603 + 5a33b7a commit f313ff4
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 f313ff4

Please sign in to comment.