From 1a5928a69c628a019640c8f4bf89874e28ec54f8 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Wed, 25 Dec 2019 16:25:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5openstack=E5=AE=BF?= =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E5=85=B3=E9=97=AD=E6=9C=8D=E5=8A=A1=E5=90=8E?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/multicloud/openstack/host.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/multicloud/openstack/host.go b/pkg/multicloud/openstack/host.go index d12996a632..670a7a4771 100644 --- a/pkg/multicloud/openstack/host.go +++ b/pkg/multicloud/openstack/host.go @@ -424,6 +424,9 @@ func (host *SHost) GetHostType() string { } func (host *SHost) GetHostStatus() string { + if host.Status == "disabled" { + return api.HOST_OFFLINE + } switch host.State { case "up", "": return api.HOST_ONLINE