mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: enable the plugin sdk to get the json data for all datasources (#61729)
This commit is contained in:
parent
be4c969337
commit
3b718a3e8f
@ -416,6 +416,8 @@ func (s *Service) httpClientOptions(ctx context.Context, ds *datasources.DataSou
|
|||||||
|
|
||||||
if ds.JsonData != nil {
|
if ds.JsonData != nil {
|
||||||
opts.CustomOptions = ds.JsonData.MustMap()
|
opts.CustomOptions = ds.JsonData.MustMap()
|
||||||
|
// allow the plugin sdk to get the json data in JSONDataFromHTTPClientOptions
|
||||||
|
opts.CustomOptions["grafanaData"] = ds.JsonData.MustMap()
|
||||||
}
|
}
|
||||||
if ds.BasicAuth {
|
if ds.BasicAuth {
|
||||||
password, err := s.DecryptedBasicAuthPassword(ctx, ds)
|
password, err := s.DecryptedBasicAuthPassword(ctx, ds)
|
||||||
|
Loading…
Reference in New Issue
Block a user