Fix subcategory population for vnf resource 89/48189/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 18 May 2018 15:03:22 +0000 (20:33 +0530)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 18 May 2018 15:03:22 +0000 (20:33 +0530)
Fix subcategory population for vnf resource.

Change-Id: Ib9b03a19cc12ed66f552096a9b3a499ac6ef574f
Issue-ID: SO-630
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java

index 5a2e19a..9d986d9 100644 (file)
@@ -1116,7 +1116,7 @@ public class ToscaResourceInstaller {// implements IVfResourceInstaller {
                vnfResource.setAicVersionMax(testNull(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_MAXINSTANCES)));\r
                vnfResource.setAicVersionMin(testNull(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_MININSTANCES)));\r
                vnfResource.setCategory(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_CATEGORY));\r
-               vnfResource.setCategory(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_SUBCATEGORY));\r
+               vnfResource.setSubCategory(vfNodeTemplate.getMetaData().getValue(SdcPropertyNames.PROPERTY_NAME_SUBCATEGORY));\r
                //vnfResource.setHeatTemplateArtifactUUId(toscaResourceStructure.getHeatTemplateUUID());\r
                \r
        //      vfNodeTemplate.getProperties()\r