aboutsummaryrefslogtreecommitdiffstats
path: root/aai-service/provider
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-09-22 19:47:40 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-22 19:47:40 +0000
commitb63efd06002c1956b638a70fa0eec6bf571b640c (patch)
tree2e568e84dd77447effab847e63bd3c8f369b3ec1 /aai-service/provider
parentfa29b05d2bc127bfe55e4733c9ef17c031adc3ff (diff)
parent4c871f84847878ce159cf1f43329f379861c2150 (diff)
Merge "Fix Blocker/Critical sonar issues"
Diffstat (limited to 'aai-service/provider')
-rwxr-xr-xaai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java
index 0cc23de9..447da3f2 100755
--- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java
+++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java
@@ -710,22 +710,19 @@ public abstract class AAIDeclarations implements AAIClient {
return QueryStatus.FAILURE;
}
} else {
- String resoourceName = resource;
+ String resourceName = resource;
String identifier = null;
- if(resoourceName == null)
- return QueryStatus.FAILURE;
-
- if(resoourceName.contains(":")) {
- String[] tokens = resoourceName.split(":");
+ if(resourceName.contains(":")) {
+ String[] tokens = resourceName.split(":");
if(tokens != null && tokens.length > 0) {
- resoourceName = tokens[0];
+ resourceName = tokens[0];
identifier = tokens[1];
}
}
if("relationship-list".equals(identifier) || "relationshipList".equals(identifier)) {
// RelationshipRequest relationshipRequest = new RelationshipRequest();
- if("generic-vnf".equals(resoourceName)){
+ if("generic-vnf".equals(resourceName)){
String vnfId = nameValues.get("vnf_id");
String relatedTo = nameValues.get("related_to");
vnfId = vnfId.trim().replace("'", "").replace("$", "").replace("'", "");