aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-11-05 12:02:07 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2020-11-05 11:41:47 +0000
commitce4031d2189cba291ca4fd8bd7cdb130df6042b3 (patch)
treeae978e96755328e60bb67fa90f2a04726933ba5b /catalog-be/src/main/java/org
parent7f7b1c8e7a8fba8e73786cb158f1ebfa5b11a8c4 (diff)
Modify the get service Abstract status interface and add the tonode judgment
Fix code Issue-ID: SDC-3346 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I5e8fb25e2c855639f3389dc3b54b9dc8ceea3037
Diffstat (limited to 'catalog-be/src/main/java/org')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AbstractTemplateBusinessLogic.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AbstractTemplateBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AbstractTemplateBusinessLogic.java
index 9061f8e2b9..9206dcb52e 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AbstractTemplateBusinessLogic.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AbstractTemplateBusinessLogic.java
@@ -124,16 +124,15 @@ public class AbstractTemplateBusinessLogic extends BaseBusinessLogic {
String serviceUniqueId,List<AbstractResourceInfo> abstractResourceInfoList) {
boolean isAbstract = getIsAbstract(resource.getCategories());
log.debug("before if isAbstract,get resource:{}", resource);
- if (!isAbstract) {
- log.debug("getResourceAbstractStatus:resource {} ,with id {} isAbstract{} is missing the isAbstract parameter",
- resource.getName(), resource.getUUID(),false);
- }
if (isAbstract) {
log.debug("getResourceAbstractStatus: resource {} with id {} ,NormalizedName:{},isAbstract{} is abstract resource",
resource.getName(), resource.getUUID(), resource.getNormalizedName(), true);
isContainAbstractResource = true;
AbstractResourceInfo abstractResourceInfo = getAbstractResourceInfo(resource, componentInstancesRelations, serviceUniqueId);
abstractResourceInfoList.add(abstractResourceInfo);
+ } else {
+ log.debug("getResourceAbstractStatus:resource {} ,with id {} isAbstract{} is missing the isAbstract parameter",
+ resource.getName(), resource.getUUID(),false);
}
return isContainAbstractResource;
}