mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
避免腾讯云eip长度超过限制
This commit is contained in:
@@ -249,6 +249,9 @@ func (region *SRegion) AllocateEIP(name string, bwMbps int, chargeType TInternet
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if len(name) > 20 {
|
||||
name = name[:20]
|
||||
}
|
||||
if len(addRessSet) > 0 {
|
||||
params["AddressId"] = addRessSet[0]
|
||||
params["AddressName"] = name
|
||||
|
||||
Reference in New Issue
Block a user