From e139ae6a162a7882d6d40203287a3e906a42564c Mon Sep 17 00:00:00 2001 From: "PATTANAYAK, SAUMYA SWARUP (sp931a)" Date: Tue, 24 Nov 2020 16:32:15 -0500 Subject: filter a&ai query to discard relationship list Issue-ID: VID-924 Change-Id: I1bb8bad294f5a5fcceb80f05177e50ad7d14e40d Signed-off-by: PATTANAYAK, SAUMYA SWARUP (sp931a) --- vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vid-app-common') diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java index e25fa8574..00137b60c 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java @@ -546,7 +546,11 @@ public class AaiClient implements AaiClientInterface { public AaiResponse getSubscriberData(String subscriberId, boolean omitServiceInstances) { String depth = omitServiceInstances ? "1" : "2"; AaiResponse subscriberDataResponse; - Response resp = doAaiGet(BUSINESS_CUSTOMERS_CUSTOMER + subscriberId + "?depth=" + depth, false); + String query = depth.equals("1") ? + BUSINESS_CUSTOMERS_CUSTOMER + subscriberId + "?depth=" + depth : + BUSINESS_CUSTOMERS_CUSTOMER + subscriberId + "?depth=" + depth +"&nodes-only"; + + Response resp = doAaiGet(query, false); subscriberDataResponse = processAaiResponse(resp, Services.class, null); return subscriberDataResponse; } -- cgit 1.2.3-korg