summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-vendor-software-product-lib')
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/NicDaoZusammenImpl.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/NicDaoZusammenImpl.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/NicDaoZusammenImpl.java
index b3f9a52a8d..53994efddb 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/NicDaoZusammenImpl.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/NicDaoZusammenImpl.java
@@ -53,7 +53,7 @@ public class NicDaoZusammenImpl implements NicDao {
.stream()
.map(new ElementToNicConvertor()::convert)
.map(nicEntity -> {
- nicEntity.setComponentId(nicEntity.getComponentId());
+ nicEntity.setComponentId(nic.getComponentId());
nicEntity.setVspId(nic.getVspId());
nicEntity.setVersion(nic.getVersion());
return nicEntity;
@@ -171,7 +171,10 @@ public class NicDaoZusammenImpl implements NicDao {
.map(component ->
listNics(context, elementContext,
new NicEntity(vspId, version, component.getId(), null)).stream()
- .map(nic -> getQuestionnaire(context, elementContext, nic))
+ .map(nic -> {
+ nic.setQuestionnaireData(getQuestionnaire(context, elementContext, nic).getQuestionnaireData());
+ return nic;
+ })
.collect(Collectors.toList()))
.flatMap(Collection::stream)
.collect(Collectors.toList());