Skip to content

Commit

Permalink
allow 0 for azurerm_lb_rule ports
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed Sep 19, 2018
1 parent c9fb7f2 commit cb0bdf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/helpers/validate/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func PortNumber(i interface{}, k string) (_ []string, errors []error) {
return
}

if v < 1 || 65535 < v {
errors = append(errors, fmt.Errorf("%q is not a valid port number: %q", k, i))
if v < 0 || 65535 < v {
errors = append(errors, fmt.Errorf("%q is not a valid port number: %d", k, v))
}

return
Expand Down

0 comments on commit cb0bdf1

Please sign in to comment.