From e72d1667c08d3f018b483cebfb077108206b5e49 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 16 Jun 2023 14:56:52 +0100 Subject: Fix normative VFCs being set to non normative during service import Issue-ID: SDC-4541 Signed-off-by: JvD_Ericsson Change-Id: I711a4a157b0ad9ee43df707a224a28fc056927c4 --- .../openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'catalog-be/src') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java index 3bfa76dc49..7d2f8c3170 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java @@ -488,6 +488,9 @@ public class ServiceImportBusinessLogic { Map combinedMappedToscaTemplate = getNewChangesToToscaTemplate(newMappedToscaTemplate, (Map) existingMappedToscaTemplate.getValue()); if (!combinedMappedToscaTemplate.equals(existingMappedToscaTemplate.getValue())) { + if (latestResource.getComponentMetadataDefinition().getMetadataDataDefinition().isNormative()) { + nodeTypeDefinition.getNodeTypeMetadata().setNormative(true); + } existingMappedToscaTemplate.setValue(combinedMappedToscaTemplate); nodeTypeDefinition.setMappedNodeType(existingMappedToscaTemplate); namesOfNodeTypesToCreate.add(nodeTypeDefinition); -- cgit 1.2.3-korg