From 5a0faa9d210ee930f2b7177a6f305dcce8c447ba Mon Sep 17 00:00:00 2001 From: ioito Date: Sat, 12 Oct 2019 11:42:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=81=BF=E5=85=8D=E5=85=AC=E6=9C=89?= =?UTF-8?q?=E4=BA=91=E8=B4=A6=E5=8F=B7=E7=BB=9F=E8=AE=A1=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E7=9A=84host=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/cloudaccounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compute/models/cloudaccounts.go b/pkg/compute/models/cloudaccounts.go index acceba9fb0..94d7a9fad3 100644 --- a/pkg/compute/models/cloudaccounts.go +++ b/pkg/compute/models/cloudaccounts.go @@ -748,7 +748,7 @@ func (self *SCloudaccount) GetProviderCount() (int, error) { func (self *SCloudaccount) GetHostCount() (int, error) { subq := CloudproviderManager.Query("id").Equals("cloudaccount_id", self.Id).SubQuery() - q := HostManager.Query().In("manager_id", subq) + q := HostManager.Query().In("manager_id", subq).IsFalse("is_emulated") return q.CountWithError() }