From 7c5f3f0e807f4bd5cba6dd380fb7a3014ec707b0 Mon Sep 17 00:00:00 2001 From: Ramya Balaji Date: Thu, 4 Jan 2018 22:32:27 -0500 Subject: Updates and code clean up for DG Util bundle Issue-ID: APPC-372 Change-Id: I4a84ac57b220c5e7582351a0fc3b584d7b92596f Signed-off-by: Ramya Balaji --- .../java/org/onap/appc/dg/util/impl/ExecuteNodeActionImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'appc-dg-util/appc-dg-util-bundle/src/main/java') diff --git a/appc-dg-util/appc-dg-util-bundle/src/main/java/org/onap/appc/dg/util/impl/ExecuteNodeActionImpl.java b/appc-dg-util/appc-dg-util-bundle/src/main/java/org/onap/appc/dg/util/impl/ExecuteNodeActionImpl.java index b5dc40712..9f7353408 100644 --- a/appc-dg-util/appc-dg-util-bundle/src/main/java/org/onap/appc/dg/util/impl/ExecuteNodeActionImpl.java +++ b/appc-dg-util/appc-dg-util-bundle/src/main/java/org/onap/appc/dg/util/impl/ExecuteNodeActionImpl.java @@ -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 paramsVm = new HashMap(); paramsVm.put("resourceType", "vserver"); paramsVm.put("prefix", "vmRetrived"); @@ -320,7 +322,6 @@ public class ExecuteNodeActionImpl implements ExecuteNodeAction { } private void populateVnfcsDetailsinContext(Map> vnfcHierarchyMap, SvcLogicContext ctx) throws APPCException { -// int vnfcCount = vnfcHierarchyMap.size(); SvcLogicContext vnfcCtx = new SvcLogicContext(); int vnfcCounter = 0; for (String vnfcName : vnfcHierarchyMap.keySet()) { -- cgit 1.2.3-korg