Skip to content

Commit

Permalink
dns: ignore case changes for DS records (#4769) (#701)
Browse files Browse the repository at this point in the history
DS records need case change suppression as with "MX" records.

Closes hashicorp/terraform-provider-google#9093

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 6, 2021
1 parent 511b88e commit 4d97235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/dns_resource_dns_record_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func rrdatasDnsDiffSuppress(k, old, new string, d *schema.ResourceData) bool {
case "AAAA":
// parse ipv6 to a key from one list
return net.ParseIP(record).String()
case "MX":
case "MX", "DS":
return strings.ToLower(record)
case "TXT":
return strings.ToLower(strings.Trim(record, `"`))
Expand Down

0 comments on commit 4d97235

Please sign in to comment.