From f8a758d32dd151f497f5cb3c7b8208f8faf772c6 Mon Sep 17 00:00:00 2001 From: shrek2000 Date: Thu, 28 Mar 2019 15:54:33 +0200 Subject: Fix Node Filter Not Found issue Add dependent child service to service Issue-ID: SDC-1987 Change-Id: I2b11f50bb1b88c407d6b1d9d4074a3efad243977 Signed-off-by: shrek2000 --- .../org/openecomp/sdc/be/model/jsontitan/utils/ModelConverter.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/ModelConverter.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/ModelConverter.java index 31a445add1..808fdbd4f6 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/ModelConverter.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/ModelConverter.java @@ -1181,6 +1181,9 @@ public class ModelConverter { List groupInstances = topologyTemplate.getInstGroups().get(key).getMapToscaDataDefinition().entrySet().stream().map(e -> new GroupInstance(e.getValue())).collect(Collectors.toList()); currComponentInstance.setGroupInstances(groupInstances); } + if(nodeFilterComponents != null && nodeFilterComponents.containsKey(key)){ + currComponentInstance.setNodeFilter(nodeFilterComponents.get(key)); + } if(topologyTemplate.getInstProperties() != null && topologyTemplate.getInstProperties().containsKey(key) && topologyTemplate.getInstProperties().get(key) != null ){ List instanceProps = topologyTemplate.getInstProperties().get(key).getMapToscaDataDefinition().entrySet().stream().map(e -> new PropertyDefinition(e.getValue())).collect(Collectors.toList()); currComponentInstance.setProperties(instanceProps); -- cgit 1.2.3-korg