From 2ea5517564b82a69591b47b5ac8cf5cac20dc5bd Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Fri, 7 Dec 2018 20:26:21 +0800 Subject: [PATCH] fix: missing spec info when host list --- pkg/compute/models/hosts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index 8ae5e880a5..de487068d1 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -1775,6 +1775,7 @@ func (self *SHost) getMoreDetails(ctx context.Context, extra *jsonutils.JSONDict memCommitRate = float64(usage.GuestVmemSize) * 1.0 / float64(totalMem) } extra.Add(jsonutils.NewFloat(memCommitRate), "mem_commit_rate") + extra.Add(self.GetHardwareSpecification(), "spec") extra = self.SManagedResourceBase.getExtraDetails(ctx, extra) return extra }