You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dnsRecordTargetSuppress function passed without issue
Actual Behavior
dnsRecordTargetSuppress function panics
Our SRE team encountered this issue when deploying their Linode infrastructure. I was assisting them in the debugging process. Basically in some edge cases, might be due to some Terraform/Terraform SDK bugs, "0" or some other invalid values can be passed in to dnsRecordTargetSuppress function as old parameter. Before HashiCorp fixing this in Terraform code base, I think it would be nice to have some validations for the parameter passing into FullIPv6, like returning a false when the net.ParseIP(...) returns a nil.
Terraform Version
Multiple versions
Affected Resource(s)
Please list the resources as a list, for example:
Debug Output
Panic Output
https://gist.github.com/zliang-akamai/e8d1e33605975b2786c5cbd58b6739f1
Expected Behavior
dnsRecordTargetSuppress
function passed without issueActual Behavior
dnsRecordTargetSuppress
function panicsOur SRE team encountered this issue when deploying their Linode infrastructure. I was assisting them in the debugging process. Basically in some edge cases, might be due to some Terraform/Terraform SDK bugs,
"0"
or some other invalid values can be passed in todnsRecordTargetSuppress
function asold
parameter. Before HashiCorp fixing this in Terraform code base, I think it would be nice to have some validations for the parameter passing intoFullIPv6
, like returning afalse
when thenet.ParseIP(...)
returns anil
.https://github.com/akamai/terraform-provider-akamai/blob/461dfad9cac309178603fab72b53a62556a38bb8/pkg/providers/dns/resource_akamai_dns_record.go#LL489C39-L489C46
Potentially related Terraform issues:
hashicorp/terraform-plugin-sdk#743
Originally reported by @iehrenwald-linode
The text was updated successfully, but these errors were encountered: