From 84559581d4b81201b0441f6c665d6a76618db4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Sat, 10 Nov 2018 15:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E8=B0=83=E5=BA=A6=E5=88=B0Az?= =?UTF-8?q?ure=E7=BB=8F=E5=85=B8=E7=B1=BB=E5=9E=8B=E4=B8=BB=E6=9C=BA?= =?UTF-8?q?=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/hosts.go | 1 + pkg/util/azure/classic_host.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index 144b92bd6c..1508b7d8dc 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -974,6 +974,7 @@ func (self *SHost) syncWithCloudHost(extHost cloudprovider.ICloudHost) error { self.ManagerId = extHost.GetManagerId() self.IsEmulated = extHost.IsEmulated() + self.Enabled = extHost.GetEnabled() return nil }) diff --git a/pkg/util/azure/classic_host.go b/pkg/util/azure/classic_host.go index e932ec8d35..e756d8788d 100644 --- a/pkg/util/azure/classic_host.go +++ b/pkg/util/azure/classic_host.go @@ -73,7 +73,7 @@ func (self *SClassicHost) GetMemSizeMB() int { return 0 } func (self *SClassicHost) GetEnabled() bool { - return true + return false } func (self *SClassicHost) GetHostStatus() string {