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 {