summaryrefslogtreecommitdiffstats
path: root/rulemgt/src/main/java/org/onap
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt/src/main/java/org/onap')
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java
index 0ee539b..003c7fb 100644
--- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java
+++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java
@@ -55,6 +55,7 @@ public class RuleActiveApp extends IOCApplication<RuleAppConfig> {
}
private MicroServiceInfo createMicroServiceInfo() {
+ String[] serviceAddrInfo = MicroServiceConfig.getServiceAddrInfo();
MicroServiceInfo msinfo = new MicroServiceInfo();
msinfo.setServiceName("holmes-rule-mgmt");
msinfo.setVersion("v1");
@@ -63,8 +64,8 @@ public class RuleActiveApp extends IOCApplication<RuleAppConfig> {
msinfo.setVisualRange("0|1");
Set<Node> nodes = new HashSet<>();
Node node = new Node();
- node.setIp(MicroServiceConfig.getServiceIp());
- node.setPort("9101");
+ node.setIp(serviceAddrInfo[0]);
+ node.setPort(serviceAddrInfo[1]);
nodes.add(node);
msinfo.setNodes(nodes);
return msinfo;