Bugfix in AAIResourceNode.java 61/29061/2
authorSkip Wonnell <skip@att.com>
Wed, 24 Jan 2018 19:00:16 +0000 (13:00 -0600)
committerPatrick Brady <pb071s@att.com>
Thu, 25 Jan 2018 19:05:50 +0000 (19:05 +0000)
fix transposition of cloudOwner and cloudRegionId names
when retrieve context attributes

Issue-ID: APPC-449
Change-Id: I207c84ea4a38e4da32503efdd99ef864241e9247
Signed-off-by: Skip Wonnell <skip@att.com>
appc-outbound/appc-aai-client/provider/src/main/java/org/onap/appc/aai/client/node/AAIResourceNode.java

index 92b74da..8f59474 100644 (file)
@@ -573,8 +573,8 @@ public class AAIResourceNode implements SvcLogicJavaPlugin {
             return null;
         }
         String tenantId = ctx.getAttribute("tmp.vnfInfo.vm[" + arrayIndex + "].tenant-id");
-        String cloudOwner = ctx.getAttribute("tmp.vnfInfo.vm[" + arrayIndex + "].cloud-region-id");
-        String cloudRegionId = ctx.getAttribute("tmp.vnfInfo.vm[" + arrayIndex + "].cloud-owner");
+        String cloudOwner = ctx.getAttribute("tmp.vnfInfo.vm[" + arrayIndex + "].cloud-owner");
+        String cloudRegionId = ctx.getAttribute("tmp.vnfInfo.vm[" + arrayIndex + "].cloud-region-id");
         log.info("setVmParams()::tenantId=" + tenantId + " cloudOwner=" + cloudOwner + " cloudRegiodId= "
                 + cloudRegionId);
         params.put("vserverId", vServerId);