From 737a8e03b057584fce110ddb6f560dd60ce9bdf5 Mon Sep 17 00:00:00 2001 From: KrupaNagabhushan Date: Mon, 15 Aug 2022 15:23:47 +0100 Subject: Fix wrongly generated tosca implementation Issue-ID: SDC-4130 Signed-off-by: KrupaNagabhushan Change-Id: I23ea03fded3d82006b98b0d42be928ac38513276 --- .../openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'catalog-be/src/main/java/org') 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 01b62595b8..25d5c1f43e 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 @@ -451,10 +451,7 @@ public class YamlTemplateParsingHandler { if (MapUtils.isEmpty(operationToscaMap) || !operationToscaMap.containsKey(IMPLEMENTATION.getElementName())) { return Optional.empty(); } - final Map implementationToscaMap = (Map) operationToscaMap.get(IMPLEMENTATION.getElementName()); - return Optional.ofNullable( - implementationToscaMap.computeIfPresent("toscaPresentation", (key, value) -> ((Map) value).get(NAME.getName())) - ); + return Optional.ofNullable(operationToscaMap.get(IMPLEMENTATION.getElementName())); } private List getOperationsInputs(final Map operationToscaMap) { -- cgit 1.2.3-korg