fix IPAddress.Name validation message
Change-Id: Idc29166d69c1eadd6e4dac3bf16f4a6739f98be2
This commit is contained in:
parent
3631efd85c
commit
16363b6fb4
@ -656,7 +656,7 @@ func ValidateIPAddressName(name string, prefix bool) []string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
errs = append(errs, err.Error())
|
errs = append(errs, err.Error())
|
||||||
} else if ip.String() != name {
|
} else if ip.String() != name {
|
||||||
errs = append(errs, "not a valid ip in canonical format")
|
errs = append(errs, "must be a canonical format IP address")
|
||||||
|
|
||||||
}
|
}
|
||||||
return errs
|
return errs
|
||||||
|
Loading…
Reference in New Issue
Block a user