summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-24 16:51:28 -0400
committerGitHub <noreply@github.com>2021-09-24 16:51:28 -0400
commite19a09c3dfb90e12078e0af4ca2cfc45677c6d68 (patch)
tree3dea7ab26a62d0e0e9167be985e8761fb9ab3cdc /cmd
parent5b88e8ba82c22dc7f39f11d5e12538a4e440d85f (diff)
parent1e0039a839ea019a43fe21feb7658a2c0b5e3099 (diff)
downloadpodman-e19a09c3dfb90e12078e0af4ca2cfc45677c6d68.tar.gz
podman-e19a09c3dfb90e12078e0af4ca2cfc45677c6d68.tar.bz2
podman-e19a09c3dfb90e12078e0af4ca2cfc45677c6d68.zip
Merge pull request #11609 from sankalp-r/add-healthcheck-ps
added healthcheck to ps command
Diffstat (limited to 'cmd')
-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()
}