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
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()));