DiffSupressFunc on TypeLists operates on the {foo}.#
marker value.
#743
Labels
bug
Something isn't working
{foo}.#
marker value.
#743
SDK version
2.5.0 (but looks to exist in head as of this issue creation)
Relevant provider source code
See https://github.com/hashicorp/terraform-provider-google/blob/master/google/resource_dns_resource_dns_record_set.go#L91.
Terraform Configuration Files
Debug Output
out of plan:
Expected Behavior
rrdatas has the list of values added in the schema.
Actual Behavior
A bug is already filed with the provider, but a
DiffSuppressFunc
which was applied to aTypeList
attribute resulted in also operating on the{fieldname}.#
marker value used to determine the length of the field. In this case, theDiffSuppressFunc
outputted that the diff for that field should be suppressed, effectively eliminating that value in the final diffAttributes.That marker value for the length is also used to determine the existence of the value at all. So the result is that the whole TypeList value is missing.
I think the right fix would be only running DiffSuppressFunc on the individual elements, rather than the marker
{fieldname}.#
value.Steps to Reproduce
See hashicorp/terraform-provider-google#8935.
References
The text was updated successfully, but these errors were encountered: