From 5e1ea62f9202acfed55e39554f5df018f717cf81 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:22:03 +0100 Subject: [PATCH] ls: fix duplicated builders for json format Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- commands/ls.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/ls.go b/commands/ls.go index 0e6e7a02..ffd4c10d 100644 --- a/commands/ls.go +++ b/commands/ls.go @@ -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() {