From ab58f0335f07e410cd3ac59ec6a61b77f1145767 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Mon, 23 Nov 2020 15:42:13 +0800 Subject: [PATCH] fix(region): apsara account fix --- pkg/multicloud/apsara/apsara.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/multicloud/apsara/apsara.go b/pkg/multicloud/apsara/apsara.go index b27343c3be..7f520afd30 100644 --- a/pkg/multicloud/apsara/apsara.go +++ b/pkg/multicloud/apsara/apsara.go @@ -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 {