From 1add92e5da0367c8fb2f19378ca34f097b870167 Mon Sep 17 00:00:00 2001 From: talig Date: Sun, 3 Jun 2018 14:40:30 +0300 Subject: Fix candidate heat dao Change-Id: Ic7defbdcb95ee1b8e8188ef43a07a2ee192d6453 Issue-ID: SDC-1371 Signed-off-by: talig --- .../impl/zusammen/OrchestrationTemplateCandidateDaoZusammenImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openecomp-be/lib') diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/OrchestrationTemplateCandidateDaoZusammenImpl.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/OrchestrationTemplateCandidateDaoZusammenImpl.java index f49832dc01..c3dbab55f6 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/OrchestrationTemplateCandidateDaoZusammenImpl.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/OrchestrationTemplateCandidateDaoZusammenImpl.java @@ -89,7 +89,7 @@ public class OrchestrationTemplateCandidateDaoZusammenImpl candidateInfoElement -> populateCandidate(candidate, candidateInfoElement, true))); logger.info("Finished getting orchestration template for vsp id {}", vspId); - return Optional.of(candidate); + return candidate.getFileSuffix() == null ? Optional.empty() : Optional.of(candidate); } @Override -- cgit 1.2.3-korg