plugins: send secureJsonData unencrypted

This commit is contained in:
bergquist
2018-01-18 11:22:44 +01:00
parent 81bb3e1e27
commit b6e6935821
3 changed files with 69 additions and 66 deletions

View File

@ -28,12 +28,13 @@ func (tw *DatasourcePluginWrapper) Query(ctx context.Context, ds *models.DataSou
pbQuery := &datasource.DatasourceRequest{
Datasource: &datasource.DatasourceInfo{
JsonData: string(jsonData),
Name: ds.Name,
Type: ds.Type,
Url: ds.Url,
Id: ds.Id,
OrgId: ds.OrgId,
JsonData: string(jsonData),
DecryptedSecureJsonData: ds.SecureJsonData.Decrypt(),
},
TimeRange: &datasource.TimeRange{
FromRaw: query.TimeRange.From,