diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index 06869f44aa..db2efac534 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -1043,6 +1043,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 2679cc53cc..d7595963f1 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 {