diff options
author | KrupaNagabhushan <krupa.nagabhushan@est.tech> | 2022-08-15 15:23:47 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-08-19 16:42:58 +0000 |
commit | 737a8e03b057584fce110ddb6f560dd60ce9bdf5 (patch) | |
tree | 32e94b9df6a745476ede7a3e10de517972ea9ded /catalog-be | |
parent | 1cb3596e003729d9fcbd2c5b3d426db6e575c7ce (diff) |
Fix wrongly generated tosca implementation
Issue-ID: SDC-4130
Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech>
Change-Id: I23ea03fded3d82006b98b0d42be928ac38513276
Diffstat (limited to 'catalog-be')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java | 5 |
1 files changed, 1 insertions, 4 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 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<String, Object> implementationToscaMap = (Map<String, Object>) operationToscaMap.get(IMPLEMENTATION.getElementName()); - return Optional.ofNullable( - implementationToscaMap.computeIfPresent("toscaPresentation", (key, value) -> ((Map<String, Object>) value).get(NAME.getName())) - ); + return Optional.ofNullable(operationToscaMap.get(IMPLEMENTATION.getElementName())); } private List<PropertyAssignmentUi> getOperationsInputs(final Map<String, Object> operationToscaMap) { |