Skip to content

Commit

Permalink
[ignore] fix annotation in children from legacy attribute input
Browse files Browse the repository at this point in the history
  • Loading branch information
akinross committed Jan 29, 2025
1 parent 85a0dcc commit 2488641
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion gen/templates/resource.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,8 @@ func (r *{{.ResourceClassName}}Resource) ModifyPlan(ctx context.Context, req res
{{- else}}
{{ .ResourceClassName }}.{{ .Name }} = basetypes.NewStringUnknown()
{{- end}}
{{- else if and (ne .Name "TDn") (not (isNewNamedClassAttribute $Overwrite))}}
{{ .ResourceClassName }}.{{ .Name }} = basetypes.NewStringUnknown()
{{- end}}
{{- end}}
}
Expand Down Expand Up @@ -1019,7 +1021,7 @@ func (r *{{.ResourceClassName}}Resource) ModifyPlan(ctx context.Context, req res
{{- $NewProperties := getNewChildAttributes (getChildAttributesFromBlocks $ClassName $.LegacyBlocks) .Properties}}
var newAttributeValues []{{ .ResourceClassName }}{{$.ResourceClassName}}ResourceModel
if stateData != nil {
stateData.Deprecated{{.ResourceClassName}}.ElementsAs(ctx, &newAttributeValues, false)
stateData.{{.ResourceClassName}}.ElementsAs(ctx, &newAttributeValues, false)
}
planData.Deprecated{{.ResourceClassName}}.ElementsAs(ctx, &attributeValues, false)
for _, attributeValue := range attributeValues {
Expand Down
6 changes: 5 additions & 1 deletion internal/provider/resource_aci_application_epg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/resource_aci_bridge_domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions internal/provider/resource_aci_endpoint_security_group.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2488641

Please sign in to comment.