fix aws cidr validation error (#15158)
This commit is contained in:
parent
2c09677bb6
commit
4d7c0d4924
|
@ -398,8 +398,7 @@ func validateCIDRNetworkAddress(v interface{}, k string) (ws []string, errors []
|
|||
|
||||
if ipnet == nil || value != ipnet.String() {
|
||||
errors = append(errors, fmt.Errorf(
|
||||
"%q must contain a valid network CIDR, expected %q, got %q",
|
||||
k, ipnet, value))
|
||||
"%q must contain a valid network CIDR, got %q", k, value))
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue