Skip to content

Commit

Permalink
Use 'fwplanmodifiers.NormalizeEmptyMap' for 'tags' attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Nov 4, 2022
1 parent 2e2c566 commit bc87de3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/tags/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package tags
import (
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-provider-aws/internal/fwplanmodifiers"
)

// Terraform Plugin Framework variants of tags schemas.
Expand All @@ -11,6 +12,9 @@ func TagsAttribute() tfsdk.Attribute {
return tfsdk.Attribute{
Type: types.MapType{ElemType: types.StringType},
Optional: true,
PlanModifiers: []tfsdk.AttributePlanModifier{
fwplanmodifiers.NormalizeEmptyMap(),
},
}
}

Expand Down

0 comments on commit bc87de3

Please sign in to comment.