diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-09 10:15:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 10:15:22 -0400 |
commit | 21cfcc4b3b19273a26cd4bb78072061109b1ed42 (patch) | |
tree | 00ddc7a31f51e28898c6cf8f150691696fa581fc /pkg | |
parent | 1b2b068ce89a52d46cfd3191ed6bbf403e7582e9 (diff) | |
parent | 3a7faf7cf838586adab805ea3c2b65ac5ee9a079 (diff) | |
download | podman-21cfcc4b3b19273a26cd4bb78072061109b1ed42.tar.gz podman-21cfcc4b3b19273a26cd4bb78072061109b1ed42.tar.bz2 podman-21cfcc4b3b19273a26cd4bb78072061109b1ed42.zip |
Merge pull request #7568 from rhatdan/latest
Fix podman ps -l
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/infra/abi/containers.go | 3 |
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) } |