Skip to content

Commit

Permalink
Datasource/CloudWatch: Correctly interpolate variables in CloudWatch …
Browse files Browse the repository at this point in the history
…Logs queries (#24619)

Closes #24603
  • Loading branch information
kaydelaney committed May 13, 2020
1 parent 277aee8 commit bfd337d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/app/plugins/datasource/cloudwatch/datasource.ts
Expand Up @@ -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);
});
Expand Down

0 comments on commit bfd337d

Please sign in to comment.