3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00

Azure Monitor: Propagate the error when failed to get datasource instance ()

Propagate the error when failed to get instance
This commit is contained in:
ms-hujia 2022-12-14 17:36:41 +08:00 committed by GitHub
parent b4e76e75b1
commit 5010765115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ func (s *Service) getDataSourceFromHTTPReq(req *http.Request) (types.DatasourceI
pluginContext := httpadapter.PluginConfigFromContext(ctx)
i, err := s.im.Get(pluginContext)
if err != nil {
return types.DatasourceInfo{}, nil
return types.DatasourceInfo{}, err
}
ds, ok := i.(types.DatasourceInfo)
if !ok {