Merge pull request #10228 from ioito/automated-cherry-pick-of-#10227-upstream-release-3.7

Automated cherry pick of #10227: fix(region): qcloud quota sync
This commit is contained in:
Zexi Li
2021-02-22 20:51:40 +08:00
committed by GitHub
+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")