summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-28 14:54:45 -0400
committerGitHub <noreply@github.com>2020-05-28 14:54:45 -0400
commite8818ced806910f8ce44939fef08f89139be4119 (patch)
treeed694b8cf97e56dee0de11e64e622cb821821c47 /pkg
parent4b2c980e0f74abd480d5c8213e9cd416108d5169 (diff)
parentd6469c9c9b88cf206b24a99a764ebfbc82d217b7 (diff)
downloadpodman-e8818ced806910f8ce44939fef08f89139be4119.tar.gz
podman-e8818ced806910f8ce44939fef08f89139be4119.tar.bz2
podman-e8818ced806910f8ce44939fef08f89139be4119.zip
Merge pull request #6416 from vrothberg/fix-ps-last
fix `ps --last=N`
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ps/ps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ps/ps.go b/pkg/ps/ps.go
index 907063df9..ec96367cb 100644
--- a/pkg/ps/ps.go
+++ b/pkg/ps/ps.go
@@ -23,7 +23,7 @@ func GetContainerLists(runtime *libpod.Runtime, options entities.ContainerListOp
filterFuncs []libpod.ContainerFilter
pss []entities.ListContainer
)
- all := options.All
+ all := options.All || options.Last > 0
if len(options.Filters) > 0 {
for k, v := range options.Filters {
for _, val := range v {