Skip to content

Commit

Permalink
Merge pull request #2980 from whereisaaron/patch-1
Browse files Browse the repository at this point in the history
resource/aws_lb_target_group: Allow a blank health check path, for TCP healtchecks
  • Loading branch information
bflad committed Jan 16, 2018
2 parents 909d8f6 + a9cf3e0 commit 8cef7c6
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 @@ -395,7 +395,7 @@ 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, "/") {
if len(value) > 0 && !strings.HasPrefix(value, "/") {
errors = append(errors, fmt.Errorf(
"%q must begin with a '/' character: %q", k, value))
}
Expand Down

0 comments on commit 8cef7c6

Please sign in to comment.