fix IPAddress.Name validation message

Change-Id: Idc29166d69c1eadd6e4dac3bf16f4a6739f98be2
This commit is contained in:
Antonio Ojea 2023-03-15 08:52:32 +00:00
parent 3631efd85c
commit 16363b6fb4

View File

@ -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