diff options
author | 2017-10-23 18:41:52 +0000 | |
---|---|---|
committer | 2017-10-23 18:41:52 +0000 | |
commit | d0bbf403e259c97cd174fd3deebcb6ab5796cc61 (patch) | |
tree | d8839cd854ee088edd07184df3301bdf5b1f33da /controlloop/common/actors | |
parent | 11eaa447e8bf8f14e836a964a86934266c908072 (diff) | |
parent | 140980d872f84e854d636a21ca872b251b15891b (diff) |
Merge "Fix handling of aai 'get' errors"
Diffstat (limited to 'controlloop/common/actors')
-rw-r--r-- | controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java b/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java index 814726256..7bf5a2826 100644 --- a/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java +++ b/controlloop/common/actors/actor.vfc/src/main/java/org/onap/policy/controlloop/actor/vfc/VFCActorServiceProvider.java @@ -72,13 +72,14 @@ public class VFCActorServiceProvider implements Actor { String serviceInstance = onset.AAI.get("service-instance.service-instance-id"); if (serviceInstance == null || "".equals(serviceInstance)) { - if(vnfResponse == null) //if the response is null, we haven't queried + AAIGETVnfResponse tempVnfResp = vnfResponse; + if(tempVnfResp == null) //if the response is null, we haven't queried { - vnfResponse = getAAIServiceInstance(onset); //This does the AAI query since we haven't already - if (vnfResponse == null) + tempVnfResp = getAAIServiceInstance(onset); //This does the AAI query since we haven't already + if (tempVnfResp == null) return null; } - serviceInstance = vnfResponse.serviceId; + serviceInstance = tempVnfResp.serviceId; } request.nsInstanceId = serviceInstance; request.requestId = onset.requestID; |