Commit 055d208a by Mitsuhiro Tanda

fix invalid reference

parent 01ba973c
...@@ -99,14 +99,15 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo ...@@ -99,14 +99,15 @@ func (e *CloudWatchExecutor) executeTimeSeriesQuery(ctx context.Context, queryCo
continue continue
} }
RefId := queryContext.Queries[i].RefId
query, err := parseQuery(queryContext.Queries[i].Model) query, err := parseQuery(queryContext.Queries[i].Model)
if err != nil { if err != nil {
result.Results[query.RefId] = &tsdb.QueryResult{ result.Results[RefId] = &tsdb.QueryResult{
Error: err, Error: err,
} }
return result, nil return result, nil
} }
query.RefId = queryContext.Queries[i].RefId query.RefId = RefId
if query.Id != "" { if query.Id != "" {
if _, ok := getMetricDataQueries[query.Region]; !ok { 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