4.6.0
This commit is contained in:
@@ -13,7 +13,7 @@ func DivisibleBy(divisibility int) schema.SchemaValidateFunc {
|
||||
errors = append(errors, fmt.Errorf("expected type of %s to be integer", k))
|
||||
return warnings, errors
|
||||
}
|
||||
if total % divisibility != 0 {
|
||||
if total%divisibility != 0 {
|
||||
errors = append(errors, fmt.Errorf("expected value of %s to be divisible by %d", k, divisibility))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user