Skip to content

Commit

Permalink
Merge pull request #2970 from crazy-max/fix-ls-json
Browse files Browse the repository at this point in the history
ls: fix duplicated builders for json format
  • Loading branch information
tonistiigi authored Feb 10, 2025
2 parents 1d21910 + 5e1ea62 commit b8e9c28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b8e9c28

Please sign in to comment.