ls: fix duplicated builders for json format

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2025-02-07 10:22:03 +01:00
parent 4b90b84995
commit 5e1ea62f92
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -159,6 +159,9 @@ func lsPrint(dockerCli command.Cli, current *store.NodeGroup, builders []*builde
}
continue
}
if ctx.Format.IsJSON() {
continue
}
for _, n := range b.Nodes() {
if n.Err != nil {
if ctx.Format.IsTable() {