mirror of
https://github.com/docker/cli.git
synced 2026-01-26 15:41:42 +03:00
image/tree: Only show untagged images when --all flag is used
In non-expanded view, untagged images should only be displayed when the --all flag is explicitly provided by the user. Previously, untagged images were accidentally always shown in the non-expanded view regardless of the --all flag setting. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -111,7 +111,7 @@ func runTree(ctx context.Context, dockerCLI command.Cli, opts treeOptions) (int,
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(sortedTags) == 0 {
|
if opts.all && len(sortedTags) == 0 {
|
||||||
view.images = append(view.images, topImage{
|
view.images = append(view.images, topImage{
|
||||||
Details: topDetails,
|
Details: topDetails,
|
||||||
Children: children,
|
Children: children,
|
||||||
|
|||||||
Reference in New Issue
Block a user