You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -120,8 +120,8 @@ func IsCIDRNetwork(min, max int) schema.SchemaValidateFunc {
120
120
}
121
121
122
122
sigbits, _:=ipnet.Mask.Size()
123
-
ifsigbits<min||sigbits>max {
124
-
errors=append(errors, fmt.Errorf("expected %q to contain a network Value with between %d and %d significant bits, got: %d", k, min, max, sigbits))
123
+
ifsigbits<minVal||sigbits>maxVal {
124
+
errors=append(errors, fmt.Errorf("expected %q to contain a network Value with between %d and %d significant bits, got: %d", k, minVal, maxVal, sigbits))
0 commit comments