Skip to content

Commit

Permalink
fix(dns-record): resource "routeros_ip_dns_record" keeps updating
Browse files Browse the repository at this point in the history
Add `DiffSuppressFunc`
Fixes #445
  • Loading branch information
vaerh committed May 9, 2024
1 parent fb2b0b0 commit a755ab0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routeros/resource_ip_dns_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ func ResourceDnsRecord() *schema.Resource {
ConflictsWith: []string{"address", "cname", "forward_to", "mx_exchange", "ns", "srv_target"},
},
"ttl": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ttl of the DNS record.",
Type: schema.TypeString,
Optional: true,
Description: "The ttl of the DNS record.",
DiffSuppressFunc: TimeEquall,
},
"type": {
Type: schema.TypeString,
Expand Down

0 comments on commit a755ab0

Please sign in to comment.