summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-11-13 16:18:15 +0100
committerChristophe Closset <christophe.closset@intl.att.com>2020-11-16 08:09:46 +0000
commit126df1ea8430799f1fd2db2ea5227543df17d699 (patch)
tree29ce9f50319e349f4b3ceed59c02a57b7a56f0de /catalog-be/src/main
parent8143fb5a129a321079cc6e93c74e32abc03ab041 (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/main')
-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()));