Add heatbridge authenticate method 08/99008/1
authorMunir Ahmad <munir.ahmad@bell.ca>
Mon, 2 Dec 2019 14:48:02 +0000 (09:48 -0500)
committerMunir Ahmad <munir.ahmad@bell.ca>
Mon, 2 Dec 2019 14:51:40 +0000 (09:51 -0500)
Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Change-Id: I16ee57af3c67d1443f07ea44536a13b6cac786dc
Issue-ID: SO-2549

adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfAdapterImpl.java

index 77b3ca9..239c68a 100644 (file)
 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<Resource> stackResources = heatBridgeClient.queryNestedHeatStackResources(heatStackId);
 
             List<Server> osServers = heatBridgeClient.getAllOpenstackServers(stackResources);