parent
c602f024f4
commit
a4965c01af
|
@ -18,7 +18,7 @@ func pqQuoteLiteral(in string) string {
|
||||||
func validateConnLimit(v interface{}, key string) (warnings []string, errors []error) {
|
func validateConnLimit(v interface{}, key string) (warnings []string, errors []error) {
|
||||||
value := v.(int)
|
value := v.(int)
|
||||||
if value < -1 {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ func Provider() terraform.ResourceProvider {
|
||||||
func validateConnTimeout(v interface{}, key string) (warnings []string, errors []error) {
|
func validateConnTimeout(v interface{}, key string) (warnings []string, errors []error) {
|
||||||
value := v.(int)
|
value := v.(int)
|
||||||
if value < 0 {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue