diff options
author | 2017-08-31 15:15:00 -0400 | |
---|---|---|
committer | 2017-08-31 15:16:13 -0400 | |
commit | 1ab4d44603a91a84a34e34b5fc896fe8a227bca4 (patch) | |
tree | 1fbc955f7acd927c47a4c22da615096f94a16cb8 /src/main/java/org/openecomp/sparky/util/NodeUtils.java | |
parent | 285a7280296e5eea3a5482c16fa7b04670875909 (diff) |
[AAI-244] grep scan
Issue-ID:AAI-244
Change-Id: Ibc51a8c72c411cff9ffc5b58bd40439ff3d703be
Signed-off-by: arul.nambi <arul.nambi@amdocs.com>
Diffstat (limited to 'src/main/java/org/openecomp/sparky/util/NodeUtils.java')
-rw-r--r-- | src/main/java/org/openecomp/sparky/util/NodeUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/openecomp/sparky/util/NodeUtils.java b/src/main/java/org/openecomp/sparky/util/NodeUtils.java index d28c5e2..10fb90a 100644 --- a/src/main/java/org/openecomp/sparky/util/NodeUtils.java +++ b/src/main/java/org/openecomp/sparky/util/NodeUtils.java @@ -366,12 +366,12 @@ public class NodeUtils { String resourceId = null; if ("/".equals(link.substring(linkLength - 1))) { // Use-case: - // https://aai-ext1.test.att.com:9292/aai/v7/business/customers/customer/1607_20160524Func_Ak1_01/service-subscriptions/service-subscription/uCPE-VMS/ + // https://<AAI-hostname>:9292/aai/v7/business/customers/customer/1607_20160524Func_Ak1_01/service-subscriptions/service-subscription/uCPE-VMS/ startIndex = link.lastIndexOf("/", linkLength - 2); resourceId = link.substring(startIndex + 1, linkLength - 1); } else { // Use-case: - // https://aai-ext1.test.att.com:9292/aai/v7/business/customers/customer/1607_20160524Func_Ak1_01/service-subscriptions/service-subscription/uCPE-VMS + // https://<AAI-Hostname>:9292/aai/v7/business/customers/customer/1607_20160524Func_Ak1_01/service-subscriptions/service-subscription/uCPE-VMS startIndex = link.lastIndexOf("/"); resourceId = link.substring(startIndex + 1, linkLength); } |