diff --git a/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetDiscoveryService.java b/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetDiscoveryService.java index ee426fe..ff36241 100644 --- a/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetDiscoveryService.java +++ b/src/main/java/com/loafle/overflow/central/module/target/service/CentralTargetDiscoveryService.java @@ -87,7 +87,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{ if(service.isTarget() && dbInfraService.getTarget() == null) { Target targetService = new Target(); targetService.setDisplayName(service.getServiceName()); - this.targetService.regist(targetService); + this.targetService.regist(targetService, probe); dbInfraService.setTarget(targetService); this.infraServiceService.regist(dbInfraService); } @@ -109,7 +109,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{ if(service.isTarget()) { Target targetService = new Target(); targetService.setDisplayName(service.getServiceName()); - this.targetService.regist(targetService); + this.targetService.regist(targetService, probe); infraService.setTarget(targetService); } @@ -175,7 +175,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{ Target target = new Target(); target.setDisplayName(host.getIpv4() + "-Host"); - this.targetService.regist(target); + this.targetService.regist(target, probe); infraHost.setTarget(target); this.infraHostService.regist(infraHost); } @@ -217,7 +217,7 @@ public class CentralTargetDiscoveryService implements TargetDiscoveryService{ Target target = new Target(); target.setDisplayName(host.getIpv4() + "-Host"); - this.targetService.regist(target); + this.targetService.regist(target, probe); newInfraHost.setTarget(target); }