mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(api): add missing jsonData field to dto
The field is available on the dto so I guess is should be used. Otherwise we should remove the field rather then not setting it. ref #5944
This commit is contained in:
parent
86aea89214
commit
1955defc43
@ -22,7 +22,6 @@ func GetDataSources(c *middleware.Context) {
|
|||||||
|
|
||||||
result := make(dtos.DataSourceList, 0)
|
result := make(dtos.DataSourceList, 0)
|
||||||
for _, ds := range query.Result {
|
for _, ds := range query.Result {
|
||||||
|
|
||||||
dsItem := dtos.DataSource{
|
dsItem := dtos.DataSource{
|
||||||
Id: ds.Id,
|
Id: ds.Id,
|
||||||
OrgId: ds.OrgId,
|
OrgId: ds.OrgId,
|
||||||
@ -35,6 +34,7 @@ func GetDataSources(c *middleware.Context) {
|
|||||||
User: ds.User,
|
User: ds.User,
|
||||||
BasicAuth: ds.BasicAuth,
|
BasicAuth: ds.BasicAuth,
|
||||||
IsDefault: ds.IsDefault,
|
IsDefault: ds.IsDefault,
|
||||||
|
JsonData: ds.JsonData,
|
||||||
}
|
}
|
||||||
|
|
||||||
if plugin, exists := plugins.DataSources[ds.Type]; exists {
|
if plugin, exists := plugins.DataSources[ds.Type]; exists {
|
||||||
|
Loading…
Reference in New Issue
Block a user