Load TOSCA package fix 88/82588/1
authorshiria <shiri.amichai@amdocs.com>
Mon, 18 Mar 2019 13:50:17 +0000 (15:50 +0200)
committershiria <shiri.amichai@amdocs.com>
Mon, 18 Mar 2019 13:50:17 +0000 (15:50 +0200)
Change-Id: I10ce085ce76c20f5861d86c6c336f44b88250a48
Issue-ID: SDC-2192
Signed-off-by: shiria <shiri.amichai@amdocs.com>
openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java

index 332555d..bb557f6 100644 (file)
@@ -761,7 +761,7 @@ public class ToscaAnalyzerServiceImpl implements ToscaAnalyzerService {
             ServiceTemplate serviceTemplate, ToscaServiceModel toscaServiceModel) {
         Optional<Map.Entry<String, ServiceTemplate>> 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("../", "");