From 8abc672e7368792cf8705e8f2ad48b28a9d4864d Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Wed, 6 Sep 2017 17:53:51 +0800 Subject: Change the API Path Change the API path from onapapi to api Change-Id: I62ee0a3d4e4b24de5aa40d4ca8bb92e6e78d9d1d Issue-ID: HOLMES-39 Signed-off-by: Guangrong Fu --- engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 2 +- engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'engine-d/src/main/java') diff --git a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java index f8c2660..5f2f3be 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java @@ -51,7 +51,7 @@ public class EngineDActiveApp extends IOCApplication { MicroServiceInfo msinfo = new MicroServiceInfo(); msinfo.setServiceName("holmes-engine-mgmt"); msinfo.setVersion("v1"); - msinfo.setUrl("/onapapi/holmes-engine-mgmt/v1"); + msinfo.setUrl("/api/holmes-engine-mgmt/v1"); msinfo.setProtocol("REST"); msinfo.setVisualRange("0|1"); Set nodes = new HashSet<>(); 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 c8835cc..5d1f442 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 @@ -189,6 +189,7 @@ public class DroolsEngine { } catch (Exception e) { throw new CorrelationException("Failed to delete the rule: " + packageName, e); } + packageNames.remove(pkg.getName()); } public void compileRule(String content, Locale locale) -- cgit 1.2.3-korg