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:
Anders F Björklund 2021-10-06 21:35:25 +02:00
parent 85bad0cc7c
commit 6e6388eac4
2 changed files with 7 additions and 2 deletions

View File

@ -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
}

View File

@ -398,7 +398,6 @@ func (v *MachineVM) Stop(name string, _ machine.StopOptions) error {
return err
}
fmt.Printf("Successfully stopped machine: %s", name)
return nil
}