From 82c754be2ce9eab573306c8e9901771b662dc5b7 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 3 Oct 2018 15:34:34 -0400 Subject: Fix pod status reporting for new Exited state Signed-off-by: Matthew Heon --- cmd/podman/shared/pod.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/podman/shared/pod.go') diff --git a/cmd/podman/shared/pod.go b/cmd/podman/shared/pod.go index badc7a837..4e8e58c4d 100644 --- a/cmd/podman/shared/pod.go +++ b/cmd/podman/shared/pod.go @@ -35,6 +35,8 @@ func GetPodStatus(pod *libpod.Pod) (string, error) { } for _, ctrStatus := range ctrStatuses { switch ctrStatus { + case libpod.ContainerStateExited: + fallthrough case libpod.ContainerStateStopped: statuses[stopped]++ case libpod.ContainerStateRunning: -- cgit v1.2.3-54-g00ecf