summaryrefslogtreecommitdiffstats
path: root/catalog-be/src
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2023-07-14 12:39:28 +0100
committerMichael Morris <michael.morris@est.tech>2023-07-14 14:15:07 +0000
commit8621aa29e84bebbd1210e7dcf95db1ed7e9368d2 (patch)
tree74ae90ae7980e791abf23f3834046f9ffd2b84d3 /catalog-be/src
parent43e5b398a131cbcad7515f7480abf0179c037e7d (diff)
Fix import node filter issue
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4571 Change-Id: I64d266ce1cba211192d17ca504ed30adbe09a9fd
Diffstat (limited to 'catalog-be/src')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java
index fff1ac5852..a15e39a478 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java
@@ -2012,7 +2012,9 @@ public class ServiceImportBusinessLogic {
instAttributes.put(resourceInstanceId, originResource.getAttributes());
addAttributeValueToResourceInstance(instAttributes, uploadComponentInstanceInfo.getAttributes());
}
- if (uploadComponentInstanceInfo.getUploadNodeFilterInfo() != null) {
+ if (uploadComponentInstanceInfo.getUploadNodeFilterInfo() == null) {
+ instNodeFilter.put(resourceInstanceId, new UploadNodeFilterInfo());
+ } else {
instNodeFilter.put(resourceInstanceId, uploadComponentInstanceInfo.getUploadNodeFilterInfo());
}
if (MapUtils.isNotEmpty(uploadComponentInstanceInfo.getInterfaces())) {