summaryrefslogtreecommitdiff
path: root/cmd/podman/machine/stop.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-03 19:16:03 -0400
committerGitHub <noreply@github.com>2022-05-03 19:16:03 -0400
commit3d84661195aa8fbf3dab67375099cb991fd7fe81 (patch)
tree2c87e85d53cf01763fec61464e5a208b18de83ae /cmd/podman/machine/stop.go
parent1e0c50df38ff955011f7ebb83a0268f3f1cd2841 (diff)
parent8da5f3f733273245dd4e86324ca88bf8e4ede37a (diff)
downloadpodman-3d84661195aa8fbf3dab67375099cb991fd7fe81.tar.gz
podman-3d84661195aa8fbf3dab67375099cb991fd7fe81.tar.bz2
podman-3d84661195aa8fbf3dab67375099cb991fd7fe81.zip
Merge pull request #14085 from jwhonce/jira/RUN-1491
Add podman machine events
Diffstat (limited to 'cmd/podman/machine/stop.go')
-rw-r--r--cmd/podman/machine/stop.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/machine/stop.go b/cmd/podman/machine/stop.go
index e6bf3cf2b..dcb124dd4 100644
--- a/cmd/podman/machine/stop.go
+++ b/cmd/podman/machine/stop.go
@@ -7,6 +7,7 @@ import (
"fmt"
"github.com/containers/podman/v4/cmd/podman/registry"
+ "github.com/containers/podman/v4/libpod/events"
"github.com/containers/podman/v4/pkg/machine"
"github.com/spf13/cobra"
)
@@ -49,5 +50,6 @@ func stop(cmd *cobra.Command, args []string) error {
return err
}
fmt.Printf("Machine %q stopped successfully\n", vmName)
+ newMachineEvent(events.Stop, events.Event{Name: vmName})
return nil
}