From a21e112364f93a1a7d342584a239b289a8ee9f0a Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 4 Apr 2022 13:04:40 -0700 Subject: Add podman machine events Signed-off-by: Jhon Honce --- cmd/podman/machine/stop.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/podman/machine/stop.go') 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 } -- cgit v1.2.3-54-g00ecf