Skip to content

Commit

Permalink
Fix export_dashboards command (elastic#8954)
Browse files Browse the repository at this point in the history
`panelJSON` is/can be an array, so marshaling to MapStr caused
problems. I think this was the root cause for elastic#8952.
  • Loading branch information
tsg authored Nov 7, 2018
1 parent 5b5bb23 commit 5546e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-tools/cmd/dashboards/export_dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func decodeValue(data common.MapStr, key string) {
return
}
s := v.(string)
var d common.MapStr
var d interface{}
json.Unmarshal([]byte(s), &d)

data.Put(key, d)
Expand Down

0 comments on commit 5546e8b

Please sign in to comment.