summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorSankalp Rangare <sankalprangare786@gmail.com>2021-09-16 20:34:39 +0530
committerMatthew Heon <matthew.heon@pm.me>2021-09-29 16:39:29 -0400
commit5e9aa13dc03e022db91135be2cb001c35eef0d08 (patch)
treed0ec0e0bf57b1ca7643298c69c5b56b77145008c /cmd/podman
parent6638a91e8ecbcc0d0c8079216e347fd650543682 (diff)
downloadpodman-5e9aa13dc03e022db91135be2cb001c35eef0d08.tar.gz
podman-5e9aa13dc03e022db91135be2cb001c35eef0d08.tar.bz2
podman-5e9aa13dc03e022db91135be2cb001c35eef0d08.zip
added healthcheck to ps command
Signed-off-by: Sankalp Rangare <sankalprangare786@gmail.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/containers/ps.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/containers/ps.go b/cmd/podman/containers/ps.go
index 2566c57de..920ad0d4a 100644
--- a/cmd/podman/containers/ps.go
+++ b/cmd/podman/containers/ps.go
@@ -375,6 +375,10 @@ func (l psReporter) State() string {
// Status is a synonym for State()
func (l psReporter) Status() string {
+ hc := l.ListContainer.Status
+ if hc != "" {
+ return l.State() + " (" + hc + ")"
+ }
return l.State()
}