diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/ps.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go index ca20f3f33..aa544e6d1 100644 --- a/cmd/podman/ps.go +++ b/cmd/podman/ps.go @@ -200,6 +200,12 @@ func psCmd(c *cli.Context) error { } containers, err := runtime.GetContainers(filterFuncs...) + if err != nil { + return err + } + + // TODO: Latest and Last are broken right now due to lack of container + // ordering var outputContainers []*libpod.Container if opts.Latest && len(containers) > 0 { outputContainers = append(outputContainers, containers[0]) |