From d25ebcc35bc59ac536eacf59af978181e6adabd3 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 13 Jul 2018 10:34:25 -0400 Subject: Ignore running containers in ps exit-code filters Signed-off-by: Matthew Heon --- cmd/podman/ps.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/podman/ps.go') diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go index 22055b274..a5f417449 100644 --- a/cmd/podman/ps.go +++ b/cmd/podman/ps.go @@ -324,8 +324,8 @@ func generateContainerFilterFuncs(filter, filterValue string, runtime *libpod.Ru return nil, errors.Wrapf(err, "exited code out of range %q", filterValue) } return func(c *libpod.Container) bool { - ec, _, err := c.ExitCode() - if ec == int32(exitCode) && err == nil { + ec, exited, err := c.ExitCode() + if ec == int32(exitCode) && err == nil && exited == true { return true } return false -- cgit v1.2.3-54-g00ecf