fix(influxdb): fixed annotation queries containting template variables, fixes #4602

This commit is contained in:
Torkel Ödegaard
2016-04-09 13:09:03 -04:00
parent 22b11d7d4d
commit 262c341bdc
2 changed files with 2 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ export default class InfluxDatasource {
var timeFilter = this.getTimeFilter({rangeRaw: options.rangeRaw});
var query = options.annotation.query.replace('$timeFilter', timeFilter);
query = this.templateSrv.replace(query);
query = this.templateSrv.replace(query, null, 'regex');
return this._seriesQuery(query).then(data => {
if (!data || !data.results || !data.results[0]) {