fix(region): qcloud quota sync

This commit is contained in:
Qu Xuan
2021-02-22 14:55:02 +08:00
parent 41dabf28cc
commit d1de64ce0d
+2 -2
View File
@@ -99,9 +99,9 @@ func (qs *QuotaSet) GetCurrentQuotaUsedCount() int {
func (region *SRegion) GetQuota(action string) ([]QuotaSet, error) {
params := map[string]string{}
resp, err := region.vpcRequest("DescribeAddressQuota", params)
resp, err := region.vpcRequest(action, params)
if err != nil {
return nil, errors.Wrap(err, "DescribeAddressQuota")
return nil, errors.Wrap(err, action)
}
quotas := []QuotaSet{}
err = resp.Unmarshal(&quotas, "QuotaSet")