provisioning: removes id from dashboard.json
if dashboard json files contains `id` we will just remove it form the dashboard model before importing it into the database. closes #11138
This commit is contained in:
@@ -170,8 +170,8 @@ func (fr *fileReader) saveDashboard(path string, folderId int64, fileInfo os.Fil
|
||||
}
|
||||
|
||||
if dash.Dashboard.Id != 0 {
|
||||
fr.log.Error("provisioned dashboard json files cannot contain id")
|
||||
return provisioningMetadata, nil
|
||||
dash.Dashboard.Data.Set("id", nil)
|
||||
dash.Dashboard.Id = 0
|
||||
}
|
||||
|
||||
if alreadyProvisioned {
|
||||
|
||||
Reference in New Issue
Block a user