Skip to content

Commit

Permalink
adjust daos list pools JSON output to match dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmac committed Jun 28, 2024
1 parent 5300e81 commit d147fb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/control/cmd/daos/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,11 @@ func (cmd *poolListCmd) Execute(_ []string) error {
}

if cmd.JSONOutputEnabled() {
return cmd.OutputJSON(pools, nil)
return cmd.OutputJSON(struct {
Pools []*daos.PoolInfo `json:"pools"` // compatibility with dmg
}{
Pools: pools,
}, nil)
}

var buf strings.Builder
Expand Down

0 comments on commit d147fb3

Please sign in to comment.