mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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
Block a user