summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-09 08:14:16 -0400
committerGitHub <noreply@github.com>2021-09-09 08:14:16 -0400
commitc6740e20630315ead0ee7c1c42a072952d058f37 (patch)
tree79c126e58d09cbc650ef2d046b052d8bcb9821b9
parent32eaf347e1e9eb752493b339499aa9fa8777af3d (diff)
parentab272d1e9bf4daac224fb230e0c9b5c56c4cab4d (diff)
downloadpodman-c6740e20630315ead0ee7c1c42a072952d058f37.tar.gz
podman-c6740e20630315ead0ee7c1c42a072952d058f37.tar.bz2
podman-c6740e20630315ead0ee7c1c42a072952d058f37.zip
Merge pull request #11488 from rhatdan/machine
Add 'Machine %q started' message when podman machine start successful
-rw-r--r--cmd/podman/machine/start.go8
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
}