From 6392515d91c00df8cb925ec9e99273a2f9e4744f Mon Sep 17 00:00:00 2001 From: sarada prasad sahoo Date: Mon, 7 Oct 2019 12:34:49 +0530 Subject: SO Distribution Error on Allotted Resource SO Distribution Error on Allotted Resource - duplicate primary Issue-ID: SO-2351 Signed-off-by: sarada prasad sahoo Change-Id: Iae7bda27ac4975b5ede657ac485472bbc6e88c56 --- .../java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'asdc-controller/src/main/java') diff --git a/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java b/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java index b2dbcb4639..d96a82c77f 100644 --- a/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java +++ b/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java @@ -706,7 +706,9 @@ public class ToscaResourceInstaller { if (!"{}".equals(resourceInput)) { allottedResource.setResourceInput(resourceInput); } - service.getAllottedCustomizations().add(allottedResource); + if (!service.getAllottedCustomizations().contains(allottedResource)) { + service.getAllottedCustomizations().add(allottedResource); + } } } } -- cgit 1.2.3-korg