mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
修复: 非baremetal类型的物理机 PXE 启动会被错误更新
This commit is contained in:
@@ -215,6 +215,7 @@ func (h *DHCPHandler) findNetworkConf(filterUseIp bool) (*types.SNetworkConfig,
|
||||
func (h *DHCPHandler) createOrUpdateBaremetal() (jsonutils.JSONObject, error) {
|
||||
session := h.baremetalManager.GetClientSession()
|
||||
params := jsonutils.NewDict()
|
||||
params.Add(jsonutils.NewString(models.HOST_TYPE_BAREMETAL), "host_type")
|
||||
params.Add(jsonutils.NewString(h.ClientMac.String()), "any_mac")
|
||||
ret, err := modules.Hosts.List(session, params)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user