K8s/Dashboards: Remove uid+version from spec (#101992)
This commit is contained in:
@@ -342,7 +342,10 @@ func (a *dashboardSqlAccess) scanRow(rows *sql.Rows, history bool) (*dashboardRo
|
||||
return row, fmt.Errorf("JSON unmarshal error for: %s // %w", dash.Name, err)
|
||||
}
|
||||
}
|
||||
dash.Spec.Remove("id")
|
||||
// Ignore any saved values for id/version/uid
|
||||
delete(dash.Spec.Object, "id")
|
||||
delete(dash.Spec.Object, "version")
|
||||
delete(dash.Spec.Object, "uid")
|
||||
}
|
||||
return row, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user