summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-09-09 06:44:10 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-09-09 08:07:40 -0400
commit3a7faf7cf838586adab805ea3c2b65ac5ee9a079 (patch)
treeb806356d77258b930191a96656f97f24edc81749 /pkg/domain/infra
parent6b1a1fcc5cb92a9fd5800b0d1af44f26093a8153 (diff)
downloadpodman-3a7faf7cf838586adab805ea3c2b65ac5ee9a079.tar.gz
podman-3a7faf7cf838586adab805ea3c2b65ac5ee9a079.tar.bz2
podman-3a7faf7cf838586adab805ea3c2b65ac5ee9a079.zip
Fix podman ps -l
Currently the --latest flag is ignored by podman ps command. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1877182 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/containers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go
index 0537942e6..21618f555 100644
--- a/pkg/domain/infra/abi/containers.go
+++ b/pkg/domain/infra/abi/containers.go
@@ -798,6 +798,9 @@ func (ic *ContainerEngine) ContainerStart(ctx context.Context, namesOrIds []stri
}
func (ic *ContainerEngine) ContainerList(ctx context.Context, options entities.ContainerListOptions) ([]entities.ListContainer, error) {
+ if options.Latest {
+ options.Last = 1
+ }
return ps.GetContainerLists(ic.Libpod, options)
}