From 51a4bef2e62b500457bcd473a1d97ca150f4d1b4 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 14 Dec 2021 16:03:19 -0500 Subject: 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 --- pkg/ps/ps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ps/ps.go') 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 -- cgit v1.2.3-54-g00ecf