mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #9938 from ioito/hotfix/qx-azure-fix
fix(region): azure default subscription id
This commit is contained in:
@@ -472,7 +472,7 @@ func (self *SAzureClient) _list(resource string, params url.Values) (jsonutils.J
|
||||
if len(subId) == 0 {
|
||||
return nil, fmt.Errorf("no avaiable subscriptions")
|
||||
}
|
||||
path = fmt.Sprintf("subscriptions/%s/providers/%s", self.subscriptionId, resource)
|
||||
path = fmt.Sprintf("subscriptions/%s/providers/%s", subId, resource)
|
||||
}
|
||||
params.Set("api-version", self._apiVersion(resource, params))
|
||||
return self.jsonRequest("GET", path, nil, params, true)
|
||||
|
||||
Reference in New Issue
Block a user