mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): show ip out of range details error (#20083)
This commit is contained in:
@@ -372,7 +372,7 @@ func (snet *SNetwork) getFreeIP(addrTable map[string]bool, recentUsedAddrTable m
|
||||
return "", err
|
||||
}
|
||||
if !iprange.Contains(candIP) {
|
||||
return "", httperrors.NewInputParameterError("candidate %s out of range", candidate)
|
||||
return "", httperrors.NewInputParameterError("candidate %s out of range %s", candidate, iprange.String())
|
||||
}
|
||||
if _, ok := addrTable[candidate]; !ok {
|
||||
return candidate, nil
|
||||
|
||||
Reference in New Issue
Block a user