From 0e3bbdaaf3c3d72cc5de86b3cff84f8b0c35ef20 Mon Sep 17 00:00:00 2001 From: Tudor Golubenco Date: Wed, 7 Nov 2018 00:36:30 +0100 Subject: [PATCH] Fix export_dashboards command `panelJSON` is/can be an array, so marshaling to MapStr caused problems. I think this was the root cause for #8952. --- dev-tools/cmd/dashboards/export_dashboards.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/cmd/dashboards/export_dashboards.go b/dev-tools/cmd/dashboards/export_dashboards.go index 421e006017d..a5338099f5f 100644 --- a/dev-tools/cmd/dashboards/export_dashboards.go +++ b/dev-tools/cmd/dashboards/export_dashboards.go @@ -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)