From 5e9aa13dc03e022db91135be2cb001c35eef0d08 Mon Sep 17 00:00:00 2001
From: Sankalp Rangare <sankalprangare786@gmail.com>
Date: Thu, 16 Sep 2021 20:34:39 +0530
Subject: added healthcheck to ps command

Signed-off-by: Sankalp Rangare <sankalprangare786@gmail.com>
---
 pkg/ps/ps.go | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'pkg/ps')

diff --git a/pkg/ps/ps.go b/pkg/ps/ps.go
index 54079baa1..e65400555 100644
--- a/pkg/ps/ps.go
+++ b/pkg/ps/ps.go
@@ -241,6 +241,13 @@ func ListContainerBatch(rt *libpod.Runtime, ctr *libpod.Container, opts entities
 			UTS:    uts,
 		}
 	}
+
+	if hc, err := ctr.HealthCheckStatus(); err == nil {
+		ps.Status = hc
+	} else {
+		logrus.Debug(err)
+	}
+
 	return ps, nil
 }
 
-- 
cgit v1.2.3-54-g00ecf