diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-05 16:11:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-05 16:11:42 +0200 |
commit | fff496436e89a290fd37b357419fd0f072ad5e88 (patch) | |
tree | 0ae2941e14666b2ca56a675af59eecefe5ab46ef /libpod/events/config.go | |
parent | 626dfdb6131a5f37c2f7cc93dbb98f33d495aca4 (diff) | |
parent | 0ad374af6a7552a68736e68fd4093809844a171f (diff) | |
download | podman-fff496436e89a290fd37b357419fd0f072ad5e88.tar.gz podman-fff496436e89a290fd37b357419fd0f072ad5e88.tar.bz2 podman-fff496436e89a290fd37b357419fd0f072ad5e88.zip |
Merge pull request #3171 from QiWang19/events_json
podman events format json
Diffstat (limited to 'libpod/events/config.go')
-rw-r--r-- | libpod/events/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/events/config.go b/libpod/events/config.go index da1d73013..453c64f8c 100644 --- a/libpod/events/config.go +++ b/libpod/events/config.go @@ -22,13 +22,13 @@ const ( type Event struct { // ContainerExitCode is for storing the exit code of a container which can // be used for "internal" event notification - ContainerExitCode int + ContainerExitCode int `json:",omitempty"` // ID can be for the container, image, volume, etc - ID string + ID string `json:",omitempty"` // Image used where applicable - Image string + Image string `json:",omitempty"` // Name where applicable - Name string + Name string `json:",omitempty"` // Status describes the event that occurred Status Status // Time the event occurred |