mirror of https://github.com/grafana/grafana.git
Assign new dashboard ID when importing dashboard via command-line
This commit is contained in:
parent
8230279932
commit
793eda7640
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue