From 30c3ecff6176b6129b520cc4420251442cfdd1a9 Mon Sep 17 00:00:00 2001 From: wanyaoqi <18528551+wanyaoqi@users.noreply.github.com> Date: Tue, 2 Jan 2024 14:01:03 +0800 Subject: [PATCH] fix(host): host register set isinit false on hostId not null (#19155) Signed-off-by: wanyaoqi --- pkg/hostman/hostinfo/hostinfo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index 935e9a4d30..9d170e3e81 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -1395,6 +1395,8 @@ func (h *SHostInfo) getSysInfo() *SSysInfo { func (h *SHostInfo) updateOrCreateHost(hostId string) (*api.HostDetails, error) { if len(hostId) == 0 { h.isInit = true + } else { + h.isInit = false } masterIp := h.GetMasterIp() if len(masterIp) == 0 {