mirror of https://github.com/containers/podman.git
Make stop message more similar to start
[NO TESTS NEEDED] Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
This commit is contained in:
parent
85bad0cc7c
commit
6e6388eac4
|
@ -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
|
||||
}
|
||||
|
|
|
@ -398,7 +398,6 @@ func (v *MachineVM) Stop(name string, _ machine.StopOptions) error {
|
|||
return err
|
||||
}
|
||||
|
||||
fmt.Printf("Successfully stopped machine: %s", name)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue