summaryrefslogtreecommitdiff
path: root/cmd/podman/ps.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-09-24 09:53:08 -0400
committerMatthew Heon <matthew.heon@gmail.com>2018-10-02 12:05:22 -0400
commit29dbab64407d11f314b894c37deb4419faeefc56 (patch)
tree5e377ce2d4ec78fba466887bbe8e0dfd97c08312 /cmd/podman/ps.go
parent2c7f97d5a782d35efc195baf7a7ca9016ca05409 (diff)
downloadpodman-29dbab64407d11f314b894c37deb4419faeefc56.tar.gz
podman-29dbab64407d11f314b894c37deb4419faeefc56.tar.bz2
podman-29dbab64407d11f314b894c37deb4419faeefc56.zip
Address review comments and fix ps output
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'cmd/podman/ps.go')
-rw-r--r--cmd/podman/ps.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go
index d36c929e8..e53afe1bf 100644
--- a/cmd/podman/ps.go
+++ b/cmd/podman/ps.go
@@ -548,6 +548,8 @@ func getTemplateOutput(psParams []psJSONParams, opts shared.PsOptions) ([]psTemp
labels := formatLabels(psParam.Labels)
switch psParam.Status {
+ case libpod.ContainerStateExited.String():
+ fallthrough
case libpod.ContainerStateStopped.String():
exitedSince := units.HumanDuration(time.Since(psParam.ExitedAt))
status = fmt.Sprintf("Exited (%d) %s ago", psParam.ExitCode, exitedSince)