From aff50b0de444707c4578246f44cca7819992e77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Sat, 17 Nov 2018 14:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9D=E5=88=9A=E5=AF=BC=E5=85=A5=E8=BF=9B?= =?UTF-8?q?=E6=9D=A5=E7=9A=84=E6=96=B0=E8=AE=A2=E9=98=85=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=9C=AAconnected=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/cloudaccounts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compute/models/cloudaccounts.go b/pkg/compute/models/cloudaccounts.go index 0655cac3e1..32b4762ff5 100644 --- a/pkg/compute/models/cloudaccounts.go +++ b/pkg/compute/models/cloudaccounts.go @@ -386,6 +386,7 @@ func (self *SCloudaccount) ImportSubAccount(ctx context.Context, userCred mcclie newCloudprovider.CloudaccountId = self.Id newCloudprovider.Provider = self.Provider newCloudprovider.Enabled = true + newCloudprovider.Status = CLOUD_PROVIDER_CONNECTED newCloudprovider.Name = subAccount.Name if !autoCreateProject { newCloudprovider.ProjectId = auth.AdminCredential().GetProjectId()