mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix(host): host register set isinit false on hostId not null (#19155)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user