summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib
diff options
context:
space:
mode:
authorolegb <olegb@amdocs.com>2018-02-26 15:18:55 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-04 09:29:38 +0000
commitf86741b693d54f0cb074028c484835f42c991923 (patch)
tree5db302d7fa8e58ca7c64061136791eafb67799a2 /openecomp-be/lib/openecomp-sdc-vendor-software-product-lib
parent0f75bea8333e50a57df10d2248fce94a5a17b1a2 (diff)
Failure to submit NFoD when backup NIC is set
Issue-ID: SDC-1062 Change-Id: I03944def6a3695dad7c866dbe1eb17b2fe5f5ae9 Signed-off-by: olegb <olegb@amdocs.com>
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());