Skip to content

Commit

Permalink
dns: ignore case changes for DS records (#4769)
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
  • Loading branch information
rjw57 authored May 6, 2021
1 parent 10696c5 commit 7f2462d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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 Expand Up @@ -48,4 +48,4 @@ func rrdatasListDiffSuppress(oldList, newList []string, fun func(x string) strin
}
}
return true
}
}

0 comments on commit 7f2462d

Please sign in to comment.