Commit 055d208a by Mitsuhiro Tanda

fix invalid reference

parent 01ba973c
......@@ -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