summaryrefslogtreecommitdiffstats
path: root/controlloop/common/actors/actor.appclcm
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@ericsson.com>2017-12-06 23:06:31 +0100
committerLiam Fallon <liam.fallon@ericsson.com>2017-12-06 23:09:55 +0100
commitc3619a82215b2277087f73741d57d3a3b75325f6 (patch)
treebc2dc805151e48935b85d478f8d7e8effbfb433f /controlloop/common/actors/actor.appclcm
parentbd7ee8043627c74f6ea2145dde279313da58261d (diff)
Technical Debt in AAI.
Eliminate the technical debt identified in the drools-applications/controlloop/common/model-impl/aai module by Sonar Change-Id: I72125baacc217386a4984be04bfc023439eddd13 Signed-off-by: Liam Fallon <liam.fallon@ericsson.com> Issue-ID: POLICY-455 Signed-off-by: Liam Fallon <liam.fallon@ericsson.com>
Diffstat (limited to 'controlloop/common/actors/actor.appclcm')
-rw-r--r--controlloop/common/actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/controlloop/common/actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java b/controlloop/common/actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java
index ed59aafc5..936dd0243 100644
--- a/controlloop/common/actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java
+++ b/controlloop/common/actors/actor.appclcm/src/main/java/org/onap/policy/controlloop/actor/appclcm/AppcLcmActorServiceProvider.java
@@ -117,8 +117,8 @@ public class AppcLcmActorServiceProvider implements Actor {
break;
}
else {
- if((item.items != null) && (item.items.inventoryResponseItems != null)) {
- vnfId = parseAAIResponse(item.items.inventoryResponseItems, resourceId);
+ if((item.items != null) && (item.items.getInventoryResponseItems() != null)) {
+ vnfId = parseAAIResponse(item.items.getInventoryResponseItems(), resourceId);
}
}
}
@@ -155,7 +155,7 @@ public class AppcLcmActorServiceProvider implements Actor {
filter.put("generic-vnf", filterItem);
aaiRequest.instanceFilters = new AAINQInstanceFilters();
- aaiRequest.instanceFilters.instanceFilter.add(filter);
+ aaiRequest.instanceFilters.getInstanceFilter().add(filter);
/*
* Obtain A&AI credentials from properties.environment file
@@ -174,7 +174,7 @@ public class AppcLcmActorServiceProvider implements Actor {
throw new AAIException("The named query response was null");
}
- String targetVnfId = parseAAIResponse(aaiResponse.inventoryResponseItems, resourceId);
+ String targetVnfId = parseAAIResponse(aaiResponse.getInventoryResponseItems(), resourceId);
if (targetVnfId == null) {
throw new AAIException("Target vnf-id could not be found");
}