This commit is contained in:
crusader 2018-06-14 19:40:00 +09:00
parent 0b21cff78b
commit 7a5cdd6bbc

View File

@ -307,6 +307,7 @@ public class CentralInfraService implements InfraService {
infraHost.setProbe(new Probe(probeID)); infraHost.setProbe(new Probe(probeID));
infraHost.setInfraZone(new InfraZone(infraZoneID)); infraHost.setInfraZone(new InfraZone(infraZoneID));
infraHost.setMetaInfraType(MetaInfraType.Enum.HOST.to()); infraHost.setMetaInfraType(MetaInfraType.Enum.HOST.to());
infraHost.setMetaTargetHostType(MetaTargetHostType.Enum.UNKNOWN.to());
infraHost = this.infraHostDAO.save(infraHost); infraHost = this.infraHostDAO.save(infraHost);
@ -325,9 +326,6 @@ public class CentralInfraService implements InfraService {
infraHostOS.setInfraHost(infraHost); infraHostOS.setInfraHost(infraHost);
this.infraHostOSService.regist(infraHostOS); this.infraHostOSService.regist(infraHostOS);
} else {
infraHost.setMetaTargetHostType(MetaTargetHostType.Enum.UNKNOWN.to());
infraHost = this.infraHostDAO.save(infraHost);
} }
if (null != oriInfraHost.getInfraHostIPs()) { if (null != oriInfraHost.getInfraHostIPs()) {