diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-03 01:35:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 01:35:54 +0100 |
commit | a245da1e52b63c451f4683f7a9b225aa49521939 (patch) | |
tree | 4c8041e9d711d7cdf00be6e1fe8c1b7543a7c857 | |
parent | 33643f4b093db36b73f1cbb6f6206be431869c3c (diff) | |
parent | 6e6388eac4a6e7bc771452102b87b78e40aaa65c (diff) | |
download | podman-a245da1e52b63c451f4683f7a9b225aa49521939.tar.gz podman-a245da1e52b63c451f4683f7a9b225aa49521939.tar.bz2 podman-a245da1e52b63c451f4683f7a9b225aa49521939.zip |
Merge pull request #12157 from afbjorklund/stop-message
Make stop message more similar to start
-rw-r--r-- | cmd/podman/machine/stop.go | 8 | ||||
-rw-r--r-- | pkg/machine/qemu/machine.go | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cmd/podman/machine/stop.go b/cmd/podman/machine/stop.go index 76ba85601..75666f734 100644 --- a/cmd/podman/machine/stop.go +++ b/cmd/podman/machine/stop.go @@ -3,6 +3,8 @@ package machine import ( + "fmt" + "github.com/containers/podman/v3/cmd/podman/registry" "github.com/containers/podman/v3/pkg/machine" "github.com/containers/podman/v3/pkg/machine/qemu" @@ -46,5 +48,9 @@ func stop(cmd *cobra.Command, args []string) error { if err != nil { return err } - return vm.Stop(vmName, machine.StopOptions{}) + if err := vm.Stop(vmName, machine.StopOptions{}); err != nil { + return err + } + fmt.Printf("Machine %q stopped successfully\n", vmName) + return nil } diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 4d8242e39..a7174aac3 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -398,7 +398,6 @@ func (v *MachineVM) Stop(name string, _ machine.StopOptions) error { return err } - fmt.Printf("Successfully stopped machine: %s", name) return nil } |