Skip to content

Commit

Permalink
Add ability to output json lists in metadata build file
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Goderre <[email protected]>
  • Loading branch information
LaurentGoderre committed Nov 8, 2024
1 parent bcac44f commit 7fa1637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ func decodeExporterResponse(exporterResponse map[string]string) map[string]inter
out[k] = v
continue
}
var raw map[string]interface{}
if err = json.Unmarshal(dt, &raw); err != nil || len(raw) == 0 {
var raw interface{}
if err = json.Unmarshal(dt, &raw); err != nil {
out[k] = v
continue
}
Expand Down

0 comments on commit 7fa1637

Please sign in to comment.