fix(host): fix check hugepage enabled

This commit is contained in:
wanyaoqi
2020-12-14 18:02:54 +08:00
parent 836a9a66ff
commit 97d96aa328
+1 -1
View File
@@ -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"))