Updates and code clean up for DG Util bundle 95/27495/1
authorRamya Balaji <rb111y@att.com>
Fri, 5 Jan 2018 03:32:27 +0000 (22:32 -0500)
committerRamya Balaji <rb111y@att.com>
Fri, 5 Jan 2018 03:45:39 +0000 (22:45 -0500)
Issue-ID: APPC-372
Change-Id: I4a84ac57b220c5e7582351a0fc3b584d7b92596f
Signed-off-by: Ramya Balaji <rb111y@att.com>
appc-dg-util/appc-dg-util-bundle/src/main/java/org/onap/appc/dg/util/impl/ExecuteNodeActionImpl.java

index b5dc407..9f73534 100644 (file)
@@ -166,7 +166,6 @@ public class ExecuteNodeActionImpl implements ExecuteNodeAction {
         if (logger.isDebugEnabled()) {
             logger.debug("Inside getVnfHierarchy======");
         }
-        //String ctx_prefix = params.get("prefix");
         String resourceKey = params.get("resourceKey");
        // String retrivalVnfKey = "vnf-id = '" + resourceKey + "' AND relationship-key = 'vserver.vserver-id'";
         String retrivalVnfKey = "generic-vnf.vnf-id = '" + resourceKey + "'";
@@ -235,7 +234,10 @@ public class ExecuteNodeActionImpl implements ExecuteNodeAction {
                     }
                     //Retrive VM relations to find vnfc's
                     //VM to VNFC is 1 to 1 relation
-                    String vmRetrivalKey = "vserver.vserver-id = '" + vserverID + "' AND tenant.tenant_id = '" + tenantID + "'" + "' AND cloud-region.cloud-owner = '" + cloudOwner + "' AND cloud-region.cloud-region-id = '" + cloudRegionId + "'";  
+                    String vmRetrivalKey = "vserver.vserver-id = '" + vserverID
+                        + "' AND tenant.tenant_id = '" + tenantID
+                        + "'" + "' AND cloud-region.cloud-owner = '" + cloudOwner
+                        + "' AND cloud-region.cloud-region-id = '" + cloudRegionId + "'";
                     Map<String, String> paramsVm = new HashMap<String, String>();
                     paramsVm.put("resourceType", "vserver");
                     paramsVm.put("prefix", "vmRetrived");
@@ -320,7 +322,6 @@ public class ExecuteNodeActionImpl implements ExecuteNodeAction {
     }
 
     private void populateVnfcsDetailsinContext(Map<String, Set<String>> vnfcHierarchyMap, SvcLogicContext ctx) throws APPCException {
-//        int vnfcCount = vnfcHierarchyMap.size();
         SvcLogicContext vnfcCtx = new SvcLogicContext();
         int vnfcCounter = 0;
         for (String vnfcName : vnfcHierarchyMap.keySet()) {