From 8621aa29e84bebbd1210e7dcf95db1ed7e9368d2 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Fri, 14 Jul 2023 12:39:28 +0100 Subject: Fix import node filter issue Signed-off-by: MichaelMorris Issue-ID: SDC-4571 Change-Id: I64d266ce1cba211192d17ca504ed30adbe09a9fd --- .../openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catalog-be/src') 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())) { -- cgit 1.2.3-korg