summaryrefslogtreecommitdiff
path: root/libpod/events/events.go
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-27 17:49:27 +0000
committerGitHub <noreply@github.com>2022-06-27 17:49:27 +0000
commit278afae1de55a2951b2a4810b100d14e5647977b (patch)
tree127c92338c22c1763c4564d43ba1c6eed34ac9c5 /libpod/events/events.go
parented2afb2059744defccd40894b5f23e3803f6b3c5 (diff)
parent0c1a3b70f5f1b8a3f8d336c6576518fae26c37cf (diff)
downloadpodman-278afae1de55a2951b2a4810b100d14e5647977b.tar.gz
podman-278afae1de55a2951b2a4810b100d14e5647977b.tar.bz2
podman-278afae1de55a2951b2a4810b100d14e5647977b.zip
Merge pull request #14705 from jakecorrenti/show-health-status-event
Show Health Status events
Diffstat (limited to 'libpod/events/events.go')
-rw-r--r--libpod/events/events.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/events/events.go b/libpod/events/events.go
index a30e0f1ca..a8001ab95 100644
--- a/libpod/events/events.go
+++ b/libpod/events/events.go
@@ -76,7 +76,7 @@ func (e *Event) ToHumanReadable(truncate bool) string {
}
switch e.Type {
case Container, Pod:
- humanFormat = fmt.Sprintf("%s %s %s %s (image=%s, name=%s", e.Time, e.Type, e.Status, id, e.Image, e.Name)
+ humanFormat = fmt.Sprintf("%s %s %s %s (image=%s, name=%s, health_status=%s", e.Time, e.Type, e.Status, id, e.Image, e.Name, e.HealthStatus)
// check if the container has labels and add it to the output
if len(e.Attributes) > 0 {
for k, v := range e.Attributes {
@@ -168,6 +168,8 @@ func StringToStatus(name string) (Status, error) {
return Exited, nil
case Export.String():
return Export, nil
+ case HealthStatus.String():
+ return HealthStatus, nil
case History.String():
return History, nil
case Import.String():