From f86741b693d54f0cb074028c484835f42c991923 Mon Sep 17 00:00:00 2001 From: olegb Date: Mon, 26 Feb 2018 15:18:55 +0200 Subject: Failure to submit NFoD when backup NIC is set Issue-ID: SDC-1062 Change-Id: I03944def6a3695dad7c866dbe1eb17b2fe5f5ae9 Signed-off-by: olegb --- .../dao/impl/zusammen/NicDaoZusammenImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-vendor-software-product-lib') 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()); -- cgit 1.2.3-korg