mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-25 10:16:12 +08:00
huawei renew bugfix
This commit is contained in:
@@ -1134,7 +1134,7 @@ func (self *SRegion) RenewInstance(instanceId string, bc billing.SBillingCycle)
|
||||
params.Add(jsonutils.NewInt(month), "period_num")
|
||||
} else if year >= 1 && year <= 3 {
|
||||
params.Add(jsonutils.NewInt(PERIOD_TYPE_YEAR), "period_type")
|
||||
params.Add(jsonutils.NewInt(year), "period_type")
|
||||
params.Add(jsonutils.NewInt(year), "period_num")
|
||||
} else {
|
||||
return fmt.Errorf("invalid renew period %s month,must be 1~11 month or 1~3 year", month)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user