Datasource/CloudWatch: Correctly interpolate variables in CloudWatch Logs queries (#24619)

Closes #24603
This commit is contained in:
kay delaney 2020-05-13 14:38:42 +01:00 committed by GitHub
parent 277aee8642
commit bfd337dd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -582,6 +582,9 @@ export class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery, CloudWa
if (makeReplacements) {
requestParams.queries.forEach(query => {
if (query.hasOwnProperty('queryString')) {
query.queryString = this.replace(query.queryString, scopedVars, true);
}
query.region = this.replace(query.region, scopedVars, true, 'region');
query.region = this.getActualRegion(query.region);
});