From 933dddd8a163285f64068b4b9fc1bcb11ca332d8 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Thu, 2 Jul 2020 15:43:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88aliyun=20lb=20schedule?= =?UTF-8?q?r=E5=88=9B=E5=BB=BA=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/regiondrivers/aliyun.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/compute/regiondrivers/aliyun.go b/pkg/compute/regiondrivers/aliyun.go index 5e24de6ef4..a45bd2fc66 100644 --- a/pkg/compute/regiondrivers/aliyun.go +++ b/pkg/compute/regiondrivers/aliyun.go @@ -620,23 +620,6 @@ func (self *SAliyunRegionDriver) ValidateCreateLoadbalancerListenerData(ctx cont if len(lb.LoadbalancerSpec) == 0 { return nil, httperrors.NewInputParameterError("The specified Scheduler %s is invalid for performance sharing loadbalancer", scheduler) } - supportRegions := []string{} - for region := range map[string]string{ - "ap-northeast-1": "东京", - "ap-southeast-2": "悉尼", - "ap-southeast-3": "吉隆坡", - "ap-southeast-5": "雅加达", - "eu-frankfurt": "法兰克福", - "na-siliconvalley": "硅谷", - "us-east-1": "弗吉利亚", - "me-east-1": "迪拜", - "cn-huhehaote": "呼和浩特", - } { - supportRegions = append(supportRegions, "Aliyun/"+region) - } - if !utils.IsInStringArray(cloudregion.ExternalId, supportRegions) { - return nil, httperrors.NewUnsupportOperationError("cloudregion %s(%d) not support %s scheduler", cloudregion.Name, cloudregion.Id, scheduler) - } } return self.SManagedVirtualizationRegionDriver.ValidateCreateLoadbalancerListenerData(ctx, userCred, ownerId, data, lb, backendGroup)