Change-Id: I10ce085ce76c20f5861d86c6c336f44b88250a48
Issue-ID: SDC-2192
Signed-off-by: shiria <shiri.amichai@amdocs.com>
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("../", "");