From 29dbab64407d11f314b894c37deb4419faeefc56 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 24 Sep 2018 09:53:08 -0400 Subject: Address review comments and fix ps output Signed-off-by: Matthew Heon --- cmd/podman/ps.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/podman/ps.go') 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) -- cgit v1.2.3-54-g00ecf