From 536f75c8b0e60d95f363e995cef4b27a0616b6e9 Mon Sep 17 00:00:00 2001 From: Munir Ahmad Date: Mon, 2 Dec 2019 09:48:02 -0500 Subject: Add heatbridge authenticate method Signed-off-by: Munir Ahmad Change-Id: I16ee57af3c67d1443f07ea44536a13b6cac786dc Issue-ID: SO-2549 --- .../src/main/java/org/onap/so/adapters/vnf/MsoVnfAdapterImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'adapters/mso-openstack-adapters/src') diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfAdapterImpl.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfAdapterImpl.java index 77b3ca9f8b..239c68abb5 100644 --- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfAdapterImpl.java +++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfAdapterImpl.java @@ -25,15 +25,11 @@ package org.onap.so.adapters.vnf; -import java.io.File; -import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; -import java.util.concurrent.TimeUnit; import javax.jws.WebService; import javax.xml.ws.Holder; import org.apache.commons.collections.CollectionUtils; @@ -428,6 +424,8 @@ public class MsoVnfAdapterImpl implements MsoVnfAdapter { HeatBridgeApi heatBridgeClient = new HeatBridgeImpl(new AAIResourcesClient(), cloudIdentity, cloudOwner, cloudSiteId, tenantId); + heatBridgeClient.authenticate(); + List stackResources = heatBridgeClient.queryNestedHeatStackResources(heatStackId); List osServers = heatBridgeClient.getAllOpenstackServers(stackResources); -- cgit 1.2.3-korg