Skip to content

Commit

Permalink
Merge pull request #311 from ulucinar/enable-customizediff
Browse files Browse the repository at this point in the history
Call the registered schema.CustomizeDiffFunc functions in the Terraform SDK-based external client
  • Loading branch information
ulucinar authored Dec 12, 2023
2 parents a978820 + 7431179 commit 77613fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/external_nofork.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func getTimeoutParameters(config *config.Resource) map[string]any { //nolint:goc

func (n *noForkExternal) getResourceDataDiff(tr resource.Terraformed, ctx context.Context, s *tf.InstanceState, resourceExists bool) (*tf.InstanceDiff, error) { //nolint:gocyclo
resourceConfig := tf.NewResourceConfigRaw(n.params)
instanceDiff, err := schema.InternalMap(n.config.TerraformResource.Schema).Diff(ctx, s, resourceConfig, nil, n.ts.Meta, false)
instanceDiff, err := schema.InternalMap(n.config.TerraformResource.Schema).Diff(ctx, s, resourceConfig, n.config.TerraformResource.CustomizeDiff, n.ts.Meta, false)
if err != nil {
return nil, errors.Wrap(err, "failed to get *terraform.InstanceDiff")
}
Expand Down

0 comments on commit 77613fd

Please sign in to comment.