parent
c602f024f4
commit
a4965c01af
|
@ -18,7 +18,7 @@ func pqQuoteLiteral(in string) string {
|
|||
func validateConnLimit(v interface{}, key string) (warnings []string, errors []error) {
|
||||
value := v.(int)
|
||||
if value < -1 {
|
||||
errors = append(errors, fmt.Errorf("%d can not be less than -1", key))
|
||||
errors = append(errors, fmt.Errorf("%s can not be less than -1", key))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ func Provider() terraform.ResourceProvider {
|
|||
func validateConnTimeout(v interface{}, key string) (warnings []string, errors []error) {
|
||||
value := v.(int)
|
||||
if value < 0 {
|
||||
errors = append(errors, fmt.Errorf("%d can not be less than 0", key))
|
||||
errors = append(errors, fmt.Errorf("%s can not be less than 0", key))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue