diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-12-14 16:03:19 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-12-14 16:03:21 -0500 |
commit | 51a4bef2e62b500457bcd473a1d97ca150f4d1b4 (patch) | |
tree | 5a4c91f22f2a4955cfd9068461cdca479969e2d3 /pkg/ps/ps.go | |
parent | c36fb8b1138b112ec3d53e5cf89a2fbcb12e6840 (diff) | |
download | podman-51a4bef2e62b500457bcd473a1d97ca150f4d1b4.tar.gz podman-51a4bef2e62b500457bcd473a1d97ca150f4d1b4.tar.bz2 podman-51a4bef2e62b500457bcd473a1d97ca150f4d1b4.zip |
Show --external containers even without --all option
We currently do not show --external containers when the user specifies
it, unless they also specify the --all flag. This has led to confusion.
I see no reason not to list them without the --all flag if the user
specifies the option.
Fixes: https://github.com/containers/podman/issues/12353
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/ps/ps.go')
-rw-r--r-- | pkg/ps/ps.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ps/ps.go b/pkg/ps/ps.go index 90ad23f49..848a23ce7 100644 --- a/pkg/ps/ps.go +++ b/pkg/ps/ps.go @@ -74,7 +74,7 @@ func GetContainerLists(runtime *libpod.Runtime, options entities.ContainerListOp } } - if options.All && options.External { + if options.External { listCon, err := GetExternalContainerLists(runtime) if err != nil { return nil, err |