Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix validation for i386.
Browse files Browse the repository at this point in the history
Cannot use 4294967295 (untyped int constant) as int value in argument to validation.IntBetween (overflows).
  • Loading branch information
vaerh committed Dec 15, 2022
1 parent e0ee50f commit 57e6b30
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions routeros/resource_ip_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ func ResourceDns() *schema.Resource {
DiffSuppressFunc: TimeEquall,
},
"cache_size": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Description: "Specifies the size of DNS cache in KiB. *Default: 2048*",
ValidateFunc: validation.IntBetween(64, 4294967295),
Type: schema.TypeInt,
Optional: true,
Computed: true,
Description: "Specifies the size of DNS cache in KiB (64..4294967295). *Default: 2048*",
},
"cache_used": {
Type: schema.TypeInt,
Expand Down

0 comments on commit 57e6b30

Please sign in to comment.