From: olegb Date: Mon, 26 Feb 2018 13:18:55 +0000 (+0200) Subject: Failure to submit NFoD when backup NIC is set X-Git-Tag: v1.2.0~306 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f86741b693d54f0cb074028c484835f42c991923;p=sdc.git Failure to submit NFoD when backup NIC is set Issue-ID: SDC-1062 Change-Id: I03944def6a3695dad7c866dbe1eb17b2fe5f5ae9 Signed-off-by: olegb --- 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());