Commit 35920838 by Marcus Efraimsson Committed by GitHub

Merge pull request #12709 from mtanda/cw_404_err_fix

fix invalid reference
parents 01ba973c 055d208a
......@@ -99,14 +99,15 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo
continue
}
RefId := queryContext.Queries[i].RefId
query, err := parseQuery(queryContext.Queries[i].Model)
if err != nil {
result.Results[query.RefId] = &tsdb.QueryResult{
result.Results[RefId] = &tsdb.QueryResult{
Error: err,
}
return result, nil
}
query.RefId = queryContext.Queries[i].RefId
query.RefId = RefId
if query.Id != "" {
if _, ok := getMetricDataQueries[query.Region]; !ok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment