test
This commit is contained in:
parent
8799462ec2
commit
dea99696c4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user