Skip to content

Commit f7155b0

Browse files
authored
fix(redis): add validation method (#1474)
1 parent a882394 commit f7155b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scaleway/resource_redis_cluster.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ func resourceScalewayRedisCluster() *schema.Resource {
9090
Computed: true,
9191
},
9292
"ip": {
93-
Type: schema.TypeString,
94-
Description: "IPv4 network address of the rule (IP network in a CIDR format).",
95-
Required: true,
93+
Type: schema.TypeString,
94+
Description: "IPv4 network address of the rule (IP network in a CIDR format).",
95+
Required: true,
96+
ValidateFunc: validation.IsCIDR,
9697
},
9798
"description": {
9899
Type: schema.TypeString,

0 commit comments

Comments
 (0)