diff options
author | Jhon Honce <jhonce@redhat.com> | 2022-04-04 13:04:40 -0700 |
---|---|---|
committer | openshift-cherrypick-robot <> | 2022-05-04 13:42:38 +0000 |
commit | a21e112364f93a1a7d342584a239b289a8ee9f0a (patch) | |
tree | b6c3632932fc703a82a55fc50727f24f0fc323d2 /cmd/podman/machine/stop.go | |
parent | 3210a3f4257d19744abd4ae2302018b16edb2507 (diff) | |
download | podman-a21e112364f93a1a7d342584a239b289a8ee9f0a.tar.gz podman-a21e112364f93a1a7d342584a239b289a8ee9f0a.tar.bz2 podman-a21e112364f93a1a7d342584a239b289a8ee9f0a.zip |
Add podman machine events
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman/machine/stop.go')
-rw-r--r-- | cmd/podman/machine/stop.go | 2 |
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 } |