From 6116388bee4b372f9ade69721e2e546da89d6192 Mon Sep 17 00:00:00 2001 From: sebdet Date: Fri, 13 Nov 2020 16:18:15 +0100 Subject: Fix deployment artifact not shown Fix deployment artifact not shown when clicking on the composed resource defined in a service. Issue-ID: SDC-3301 Signed-off-by: sebdet Change-Id: I65c5a61d27fad6126a933bf735abb0c99b1896a9 --- .../org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main/java') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java index c9e0a44999..b6efd3ef0b 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java @@ -796,7 +796,7 @@ public class ArtifactsBusinessLogic extends BaseBusinessLogic { log.debug("handleGetArtifactsByType - not failed groupType {} , component id {}", artifactGroupType, componentId); throw new ByActionStatusComponentException(ActionStatus.MISSING_INFORMATION); } - if (groupType == ArtifactGroupTypeEnum.DEPLOYMENT) { + if (parentId == null && groupType == ArtifactGroupTypeEnum.DEPLOYMENT) { List list = getDeploymentArtifacts(component, componentId); if (list != null && !list.isEmpty()) { resMap = list.stream().collect(Collectors.toMap(ArtifactDataDefinition::getArtifactLabel, Function.identity())); -- cgit 1.2.3-korg