aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorSankalp Rangare <sankalprangare786@gmail.com>2021-09-16 20:34:39 +0530
committerSankalp Rangare <sankalprangare786@gmail.com>2021-09-24 20:24:23 +0530
commit1e0039a839ea019a43fe21feb7658a2c0b5e3099 (patch)
tree8ef3f89530abc09d8a64215e0ee12a1e4b8d4009 /cmd/podman
parent800d594afa160353cc7134ef912bf82f266a122c (diff)
downloadpodman-1e0039a839ea019a43fe21feb7658a2c0b5e3099.tar.gz
podman-1e0039a839ea019a43fe21feb7658a2c0b5e3099.tar.bz2
podman-1e0039a839ea019a43fe21feb7658a2c0b5e3099.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 afb8edd91..9687cd5bd 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()
}