From 0ad374af6a7552a68736e68fd4093809844a171f Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Mon, 20 May 2019 17:23:03 -0400 Subject: podman events format json Enable podman events to format the output as jsonline Signed-off-by: Qi Wang --- libpod/events/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libpod/events/config.go') diff --git a/libpod/events/config.go b/libpod/events/config.go index 96172d47b..36080c448 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 -- cgit v1.2.3-54-g00ecf