mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): fix check hugepage enabled
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user