From eecbdc89eb8bff586f19e767165913f4770ea8dc Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Thu, 8 Mar 2018 01:18:11 +0900 Subject: [PATCH] fix, set default highResolution setting --- pkg/tsdb/cloudwatch/cloudwatch.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/tsdb/cloudwatch/cloudwatch.go b/pkg/tsdb/cloudwatch/cloudwatch.go index c87c33b3810..3879dce4ea6 100644 --- a/pkg/tsdb/cloudwatch/cloudwatch.go +++ b/pkg/tsdb/cloudwatch/cloudwatch.go @@ -293,10 +293,7 @@ func parseQuery(model *simplejson.Json) (*CloudWatchQuery, error) { alias = "{{metric}}_{{stat}}" } - highResolution, err := model.Get("highResolution").Bool() - if err != nil { - return nil, err - } + highResolution := model.Get("highResolution").MustBool(false) return &CloudWatchQuery{ Region: region,