Skip to content

Commit

Permalink
Merge pull request #12157 from afbjorklund/stop-message
Browse files Browse the repository at this point in the history
Make stop message more similar to start
  • Loading branch information
openshift-merge-robot authored Nov 3, 2021
2 parents 33643f4 + 6e6388e commit a245da1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion cmd/podman/machine/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
1 change: 0 additions & 1 deletion pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ func (v *MachineVM) Stop(name string, _ machine.StopOptions) error {
return err
}

fmt.Printf("Successfully stopped machine: %s", name)
return nil
}

Expand Down

0 comments on commit a245da1

Please sign in to comment.