From 1475e23270900a64a226061c0a599fe4b5e3a5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Fri, 28 Jan 2022 11:13:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(region):=20=E6=94=AF=E6=8C=81=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E6=8C=87=E5=AE=9A=E9=A1=B9=E7=9B=AE=E5=88=87=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=9B=E5=BB=BA=E9=A1=B9=E7=9B=AE=20(#13359)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/cloudaccounts.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/compute/models/cloudaccounts.go b/pkg/compute/models/cloudaccounts.go index 4fa6cb8292..830fafc254 100644 --- a/pkg/compute/models/cloudaccounts.go +++ b/pkg/compute/models/cloudaccounts.go @@ -422,12 +422,6 @@ func (manager *SCloudaccountManager) validateCreateData( if proj.DomainId != ownerId.GetProjectDomainId() { return input, httperrors.NewInputParameterError("Project %s(%s) not belong to domain %s(%s)", proj.Name, proj.Id, ownerId.GetProjectDomain(), ownerId.GetProjectDomainId()) } - if input.AutoCreateProject != nil && *input.AutoCreateProject { - log.Warningf("project_id and auto_create_project should not be turned on at the same time") - } - if !forceAutoCreateProject { - input.AutoCreateProject = nil - } } else if input.AutoCreateProject == nil || !*input.AutoCreateProject { log.Warningf("auto_create_project is off while no project_id specified") createProject := true