From 8880e3daf0bb725097900cdd5caf3e0a9b30dca5 Mon Sep 17 00:00:00 2001 From: g-dx Date: Thu, 29 Jun 2023 14:57:45 +0100 Subject: [PATCH] r/aws_quicksight_analysis: Correctly expand comparison method Fixes #32285 --- .changelog/32285.txt | 3 +++ internal/service/quicksight/schema/visual.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/32285.txt diff --git a/.changelog/32285.txt b/.changelog/32285.txt new file mode 100644 index 00000000000..feb868c248c --- /dev/null +++ b/.changelog/32285.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_quicksight_analysis: Correctly expand comparison method +``` \ No newline at end of file diff --git a/internal/service/quicksight/schema/visual.go b/internal/service/quicksight/schema/visual.go index 4d18e50735b..d5f53162bfe 100644 --- a/internal/service/quicksight/schema/visual.go +++ b/internal/service/quicksight/schema/visual.go @@ -1280,7 +1280,7 @@ func expandComparisonConfiguration(tfList []interface{}) *quicksight.ComparisonC config := &quicksight.ComparisonConfiguration{} - if v, ok := tfMap["config"].(string); ok && v != "" { + if v, ok := tfMap["comparison_method"].(string); ok && v != "" { config.ComparisonMethod = aws.String(v) } if v, ok := tfMap["comparison_format"].([]interface{}); ok && len(v) > 0 {