diff options
author | shiria <shiri.amichai@amdocs.com> | 2019-03-18 15:50:17 +0200 |
---|---|---|
committer | shiria <shiri.amichai@amdocs.com> | 2019-03-18 15:50:17 +0200 |
commit | 253dbfd102c97b7df10ab33a58a367a17a2bebb9 (patch) | |
tree | cacf243dd127e3b2bb20a36cd27d0b8500a54b0c /openecomp-be/lib/openecomp-tosca-lib/src/main/java | |
parent | 20679b258fc6bfbcf3afa1f5aec6a94715f3ebf5 (diff) |
Load TOSCA package fix
Change-Id: I10ce085ce76c20f5861d86c6c336f44b88250a48
Issue-ID: SDC-2192
Signed-off-by: shiria <shiri.amichai@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-lib/src/main/java')
-rw-r--r-- | openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<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("../", ""); |