diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-08 13:26:04 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-08 15:23:53 -0400 |
commit | ab272d1e9bf4daac224fb230e0c9b5c56c4cab4d (patch) | |
tree | b59a33ec32476f9b8f3852e210137417e6e4475c /cmd/podman/machine | |
parent | 26c8549ae3d4f5c3742d006e40a51080d5ae0746 (diff) | |
download | podman-ab272d1e9bf4daac224fb230e0c9b5c56c4cab4d.tar.gz podman-ab272d1e9bf4daac224fb230e0c9b5c56c4cab4d.tar.bz2 podman-ab272d1e9bf4daac224fb230e0c9b5c56c4cab4d.zip |
Add 'Machine %q started' message when podman machine start successful
Currently users are confused if podman machine prints warnings about
whether or not podman machine was successful. Printing this message
clears up the confusion.
[NO TESTS NEEDED] Since we don't have a way to test podman machine in
ci/cd system
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/machine')
-rw-r--r-- | cmd/podman/machine/start.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/podman/machine/start.go b/cmd/podman/machine/start.go index a5ba74599..4ae31e6de 100644 --- a/cmd/podman/machine/start.go +++ b/cmd/podman/machine/start.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" @@ -58,5 +60,9 @@ func start(cmd *cobra.Command, args []string) error { if err != nil { return err } - return vm.Start(vmName, machine.StartOptions{}) + if err := vm.Start(vmName, machine.StartOptions{}); err != nil { + return err + } + fmt.Printf("Machine %q started successfully\n", vmName) + return nil } |