From 253dbfd102c97b7df10ab33a58a367a17a2bebb9 Mon Sep 17 00:00:00 2001 From: shiria Date: Mon, 18 Mar 2019 15:50:17 +0200 Subject: Load TOSCA package fix Change-Id: I10ce085ce76c20f5861d86c6c336f44b88250a48 Issue-ID: SDC-2192 Signed-off-by: shiria --- .../org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openecomp-be/lib/openecomp-tosca-lib/src') diff --git a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java index 332555d509..bb557f6076 100644 --- a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java +++ b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java @@ -761,7 +761,7 @@ public class ToscaAnalyzerServiceImpl implements ToscaAnalyzerService { ServiceTemplate serviceTemplate, ToscaServiceModel toscaServiceModel) { Optional> serviceTemplateEntry = toscaServiceModel.getServiceTemplates().entrySet().stream() - .filter(entry -> entry.getValue().equals(serviceTemplate)).findFirst(); + .filter(entry -> entry.getValue() == serviceTemplate).findFirst(); if (!serviceTemplateEntry.isPresent()) { if (importServiceTemplateFile.contains("../")) { return importServiceTemplateFile.replace("../", ""); -- cgit 1.2.3-korg