Skip to content

Commit

Permalink
Fixed slow_start validation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
bboerst authored and bboerst committed May 30, 2018
1 parent 5ad9339 commit 5430ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_lb_target_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func validateSlowStart(v interface{}, k string) (ws []string, errors []error) {
value := v.(int)

// Check if the value is between 30-900 or 0 (seconds).
if value == 0 || (value < 30 || value > 900) {
if value != 0 && !(value >= 30 && value <= 900) {
errors = append(errors, fmt.Errorf(
"%q contains an invalid Slow Start Duration \"%d\". "+
"Valid intervals are 30-900 or 0 to disable.",
Expand Down

0 comments on commit 5430ab3

Please sign in to comment.