From 97d96aa3282b062a2673457e27126bae16e1be38 Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Mon, 14 Dec 2020 18:02:54 +0800 Subject: [PATCH] fix(host): fix check hugepage enabled --- pkg/hostman/hostinfo/hostinfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index 9b57210c19..a533fcd392 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -1072,7 +1072,7 @@ func (h *SHostInfo) onUpdateHostInfoSucc(hostbody jsonutils.JSONObject) { return } - if options.HostOptions.HugepagesOption != "native" { + if options.HostOptions.HugepagesOption == "native" { if h.isInit && len(h.IsolatedDeviceMan.Devices) > 0 { meta := jsonutils.NewDict() meta.Set("__enable_hugepages", jsonutils.NewString("true"))