Fix issue SO failed to create VNF 75/25275/2 1.0.1-Amsterdam 1.0.1-ONAP v1.1.2
authoreyalholz <eyalh@amdocs.com>
Thu, 30 Nov 2017 18:41:38 +0000 (20:41 +0200)
committerSeshu Kumar M <seshu.kumar.m@huawei.com>
Thu, 4 Jan 2018 10:19:27 +0000 (10:19 +0000)
Failed with error message: Internal Error Occurred in CreateVnfInfra QueryCatalogDB Process

Issue-ID: SO-352

Change-Id: I7b370102f865a1eb3a07c49d5f4cfcda03391728
Signed-off-by: eyalholz <eyalh@amdocs.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/CreateVnfInfra.groovy

index 1c98b87..8eea643 100644 (file)
@@ -456,7 +456,7 @@ class CreateVnfInfra extends AbstractServiceTaskProcessor {
                        JSONArray vnfs = cutils.getAllVnfsByVnfModelCustomizationUuid(execution,
                                                        vnfModelCustomizationUuid, "v2")
                        utils.log("DEBUG", "obtained VNF list: " + vnfs, isDebugEnabled)                        
-                       execution.setVariable("CREVI_vnfs", vnfs)
+                       execution.setVariable("CREVI_vnfs", vnfs.toString())
                        
                        if (vnfs == null) {
                                utils.log("ERROR", "No matching VNFs in Catalog DB for vnfModelCustomizationUuid=" + vnfModelCustomizationUuid, isDebugEnabled)