Assign new dashboard ID when importing dashboard via command-line

This commit is contained in:
Jason Wilder
2015-02-11 15:20:36 -07:00
parent 8230279932
commit 793eda7640
+1
View File
@@ -106,6 +106,7 @@ func importDashboard(path string, accountId int64) error {
if err := jsonParser.Decode(&dash.Data); err != nil {
return err
}
dash.Data["id"] = nil
cmd := m.SaveDashboardCommand{
AccountId: accountId,