From ac3098e03c5ec20dc8d85b2497750263ad1f1f00 Mon Sep 17 00:00:00 2001 From: KrupaNagabhushan Date: Mon, 23 May 2022 14:30:11 +0100 Subject: Maintain VFC instance occurrences values When a VFC is added to a component and occurrences value is set on that VFC instance, those values should be maintained if the VFC instance version is changed Issue-ID: SDC-4015 Signed-off-by: KrupaNagabhushan Change-Id: I2a6e19db3737670182c07df4113e09fec4f10a3a --- .../sdc/be/components/impl/ComponentInstanceBusinessLogic.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'catalog-be') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java index ef55381974..0b284226ee 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java @@ -2869,6 +2869,9 @@ public class ComponentInstanceBusinessLogic extends BaseBusinessLogic { newComponentInstance.setPosX(resResourceInfo.getPosX()); newComponentInstance.setPosY(resResourceInfo.getPosY()); newComponentInstance.setDescription(resResourceInfo.getDescription()); + newComponentInstance.setInstanceCount(resResourceInfo.getInstanceCount()); + newComponentInstance.setMaxOccurrences(resResourceInfo.getMaxOccurrences()); + newComponentInstance.setMinOccurrences(resResourceInfo.getMinOccurrences()); ComponentInstance updatedComponentInstance = createComponentInstanceOnGraph(containerComponent, origComponent, newComponentInstance, user); -- cgit 1.2.3-korg