summaryrefslogtreecommitdiffstats
path: root/appc-config/appc-flow-controller/provider
diff options
context:
space:
mode:
authorBalaji, Ramya (rb111y) <rb111y@att.com>2018-05-21 16:16:42 -0400
committerBalaji, Ramya (rb111y) <rb111y@att.com>2018-05-21 16:18:19 -0400
commit07fcbfcd2e65135556fce021748aa6c338cf710d (patch)
tree12c5d92a725891ed398530ae30c7df95ed168057 /appc-config/appc-flow-controller/provider
parent637ba4df11df1922ba7eb5e025c24e9a59f7ef55 (diff)
Bug fix in Healthcheck
Code was changed to make subcontext mandatory. This is not a mandatory field/property and code changes are needed to reflect this. Issue-ID: APPC-915 Change-Id: I5b94572907a1f56980e1dbc8f238f29458360588 Signed-off-by: Balaji, Ramya (rb111y) <rb111y@att.com>
Diffstat (limited to 'appc-config/appc-flow-controller/provider')
-rw-r--r--appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/node/ResourceUriExtractor.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/node/ResourceUriExtractor.java b/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/node/ResourceUriExtractor.java
index af65b1259..22011e773 100644
--- a/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/node/ResourceUriExtractor.java
+++ b/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/node/ResourceUriExtractor.java
@@ -82,15 +82,12 @@ class ResourceUriExtractor {
}
private String getSubContext(SvcLogicContext ctx, Properties prop) throws Exception {
- String subContext;
+ String subContext = "";
if (StringUtils.isNotBlank(ctx.getAttribute(INPUT_SUB_CONTEXT))) {
subContext = "/" + ctx.getAttribute(INPUT_SUB_CONTEXT);
} else if (prop.getProperty(ctx.getAttribute(INPUT_REQUEST_ACTION) + ".sub-context") != null) {
subContext = "/" + prop.getProperty(ctx.getAttribute(INPUT_REQUEST_ACTION) + ".sub-context");
- } else {
- throw new Exception(
- "Could not find the sub context for operation " + ctx.getAttribute(INPUT_REQUEST_ACTION));
- }
+ }
return subContext;
}