diff --git a/commands/build.go b/commands/build.go index e0e21761e565..d59f532e17d1 100644 --- a/commands/build.go +++ b/commands/build.go @@ -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 }