Fix 'Missing Substitution Map Node after update Service'-bug 05/136105/7
authorvasraz <vasyl.razinkov@est.tech>
Wed, 4 Oct 2023 22:04:52 +0000 (23:04 +0100)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Thu, 5 Oct 2023 23:17:27 +0000 (23:17 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I91b66a9b5c0688a51c4d100fc6a9bfccb48a1180
Issue-ID: SDC-4645

catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java

index 5556548..7970dd2 100644 (file)
@@ -200,6 +200,7 @@ public class YamlTemplateParsingHandler {
         if (substitutionMappings != null) {
             if (component.isService()) {
                 if (interfaceTemplateYaml.isEmpty()) {
+                    component.setDerivedFromGenericType((String) substitutionMappings.get(NODE_TYPE.getElementName()));
                     List<PropertyDefinition> properties = serviceBusinessLogic.fetchDerivedFromGenericType(component, null).getProperties();
                     parsedToscaYamlInfo.setProperties(properties.stream().collect(Collectors.toMap(PropertyDefinition::getName, prop -> prop)));
                 } else {