summaryrefslogtreecommitdiffstats
path: root/catalog-be
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2023-10-04 23:04:52 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-10-05 23:17:27 +0000
commit7918aa981a4c015a1cc5cd8a63a1fc381ac9f2cc (patch)
tree1692a3ae456ccb2309196c86817f56fc80b3fc22 /catalog-be
parent92919e1c189cfcc9ca063d391dadb7b51a88f9d7 (diff)
Fix 'Missing Substitution Map Node after update Service'-bug
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I91b66a9b5c0688a51c4d100fc6a9bfccb48a1180 Issue-ID: SDC-4645
Diffstat (limited to 'catalog-be')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java
index 5556548b50..7970dd2680 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java
@@ -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 {