summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main
diff options
context:
space:
mode:
authorKrupaNagabhushan <krupa.nagabhushan@est.tech>2022-05-23 14:30:11 +0100
committerMichael Morris <michael.morris@est.tech>2022-05-25 13:54:55 +0000
commitac3098e03c5ec20dc8d85b2497750263ad1f1f00 (patch)
treec08e771064c4afdbbe783ac624cc494c4c9a4921 /catalog-be/src/main
parent47c04b23cf7fe1ab24eee39e8d001dbe84c5fef3 (diff)
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 <krupa.nagabhushan@est.tech> Change-Id: I2a6e19db3737670182c07df4113e09fec4f10a3a
Diffstat (limited to 'catalog-be/src/main')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java3
1 files changed, 3 insertions, 0 deletions
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);