summaryrefslogtreecommitdiffstats
path: root/engine-d/src/main/java/org/onap
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2021-08-25 16:15:03 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2021-08-25 16:15:03 +0800
commit837375696b4b2e09a0e8abdf0ca4bd45cce13a0b (patch)
tree4a35e20bc21b467c09e1051e8d3c091a45533fe4 /engine-d/src/main/java/org/onap
parent4640bd9237d68024c15f54d5884663eabb9f2fc0 (diff)
bugfix - engines cannot get ip when deploy rules during init9.0.0
Issue-ID: HOLMES-462 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn> Change-Id: I4c494dfc7c3371fbed66d43a51513fddd50e69da
Diffstat (limited to 'engine-d/src/main/java/org/onap')
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java b/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java
index 78f2677..cbda858 100644
--- a/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java
+++ b/engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java
@@ -86,6 +86,7 @@ public class DroolsEngine {
@PostConstruct
private void init() {
alarmInfoDao = daoUtil.getJdbiDaoByOnDemand(AlarmInfoDao.class);
+ instanceIp = MicroServiceConfig.getMicroServiceIpAndPort()[0];
try {
log.info("Drools engine initializing...");
initEngine();
@@ -102,7 +103,6 @@ public class DroolsEngine {
log.error("Failed to startup the engine of Holmes: " + e.getMessage(), e);
throw ExceptionUtil.buildExceptionResponse("Failed to startup Drools!");
}
- instanceIp = MicroServiceConfig.getMicroServiceIpAndPort()[0];
}
public void stop() {