Merge pull request #8911 from ioito/hotfix/qx-apsara-fix

fix(region): apsara account fix
This commit is contained in:
Zexi Li
2020-11-23 16:11:20 +08:00
committed by GitHub
+2 -2
View File
@@ -385,13 +385,13 @@ func (self *SApsaraClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
}
subAccount := cloudprovider.SSubAccount{}
subAccount.Name = self.cpcfg.Name
subAccount.Account = self.cpcfg.EcsEndpoint
subAccount.Account = self.accessKey
subAccount.HealthStatus = api.CLOUD_PROVIDER_HEALTH_NORMAL
return []cloudprovider.SSubAccount{subAccount}, nil
}
func (self *SApsaraClient) GetAccountId() string {
return self.ownerId
return self.cpcfg.EcsEndpoint
}
func (self *SApsaraClient) GetIRegions() []cloudprovider.ICloudRegion {