Skip to content

Commit

Permalink
r/aws_quicksight_analysis: Fix assignment of KPI visual field well ta…
Browse files Browse the repository at this point in the history
…rget values

Fixes hashicorp#31901
  • Loading branch information
g-dx committed Jun 12, 2023
1 parent e1f2849 commit fb5e404
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/31901.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_quicksight_analysis: Fix assignment of KPI visual field well target values
```
2 changes: 1 addition & 1 deletion internal/service/quicksight/schema/visual_kpi.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func expandKPIFieldWells(tfList []interface{}) *quicksight.KPIFieldWells {
config.TrendGroups = expandDimensionFields(v)
}
if v, ok := tfMap["target_values"].([]interface{}); ok && len(v) > 0 {
config.Values = expandMeasureFields(v)
config.TargetValues = expandMeasureFields(v)
}
if v, ok := tfMap["values"].([]interface{}); ok && len(v) > 0 {
config.Values = expandMeasureFields(v)
Expand Down

0 comments on commit fb5e404

Please sign in to comment.