Skip to content

Commit

Permalink
fix lb_target_group health check inconsistencies (#2580)
Browse files Browse the repository at this point in the history
* path defaults to "/" and validate function checks for "/" prefix
* timeout doc reflects the actual default in code
  • Loading branch information
eguven authored and radeksimko committed Jan 3, 2018
1 parent 0ad1d60 commit 4b56a73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/resource_aws_lb_target_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ func validateAwsLbTargetGroupHealthCheckPath(v interface{}, k string) (ws []stri
errors = append(errors, fmt.Errorf(
"%q cannot be longer than 1024 characters: %q", k, value))
}
if !strings.HasPrefix(value, "/") {
errors = append(errors, fmt.Errorf(
"%q must begin with a '/' character: %q", k, value))
}
return
}

Expand Down

0 comments on commit 4b56a73

Please sign in to comment.