From 09750de93436edac99890b252b7b4e1f0cd5b12b Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Wed, 12 Dec 2018 16:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E6=98=AF=E5=85=81=E8=AE=B8=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=B0=83=E5=BA=A6=E6=A0=87=E7=AD=BE=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E8=AE=BA=E5=85=AC=E6=9C=89=E4=BA=91=E8=BF=98=E6=98=AF=E7=A7=81?= =?UTF-8?q?=E6=9C=89=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/capabilities.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/compute/models/capabilities.go b/pkg/compute/models/capabilities.go index 4462fe4104..d6fb559df4 100644 --- a/pkg/compute/models/capabilities.go +++ b/pkg/compute/models/capabilities.go @@ -132,11 +132,7 @@ func getNetworkCount(zone *SZone) int { } func isSchedPolicySupported(zone *SZone) bool { - if zone != nil { - return !zone.isManaged() - } else { - return true - } + return true } func getMinNicCount(zone *SZone) int {