aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-11-13 16:18:15 +0100
committerS�bastien Determe <sebastien.determe@intl.att.com>2020-11-13 18:21:02 +0000
commit6116388bee4b372f9ade69721e2e546da89d6192 (patch)
treec10842b624632b4012acd14e565ff34a392cc220 /catalog-be/src
parentd5f6ad87a80e5cab91227f65c894e66fa2856b18 (diff)
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 <sebastien.determe@intl.att.com> Change-Id: I65c5a61d27fad6126a933bf735abb0c99b1896a9
Diffstat (limited to 'catalog-be/src')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java2
1 files changed, 1 insertions, 1 deletions
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<ArtifactDefinition> list = getDeploymentArtifacts(component, componentId);
if (list != null && !list.isEmpty()) {
resMap = list.stream().collect(Collectors.toMap(ArtifactDataDefinition::getArtifactLabel, Function.identity()));