mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
ctyun eip charge type fix
This commit is contained in:
@@ -366,7 +366,9 @@ func (self *SElasticip) SyncWithCloudEip(ctx context.Context, userCred mcclient.
|
||||
self.ExternalId = ext.GetGlobalId()
|
||||
self.IsEmulated = ext.IsEmulated()
|
||||
|
||||
self.ChargeType = ext.GetInternetChargeType()
|
||||
if chargeType := ext.GetInternetChargeType(); len(chargeType) > 0 {
|
||||
self.ChargeType = chargeType
|
||||
}
|
||||
|
||||
factory, _ := provider.GetProviderFactory()
|
||||
if factory != nil && factory.IsSupportPrepaidResources() {
|
||||
|
||||
@@ -188,7 +188,7 @@ func (self *SEip) GetBandwidth() int {
|
||||
|
||||
func (self *SEip) GetInternetChargeType() string {
|
||||
// todo: fix me
|
||||
return api.EIP_CHARGE_TYPE_BY_BANDWIDTH
|
||||
return ""
|
||||
}
|
||||
|
||||
func (self *SEip) Delete() error {
|
||||
|
||||
Reference in New Issue
Block a user