mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Automatic merge from release/2.5.0 -> release/2.6.0
* commit 'ce319b767c0fa3a31ecadafd17a1b62c3e046197': 避免腾讯云eip长度超过限制
This commit is contained in:
@@ -257,6 +257,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