summaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/main
diff options
context:
space:
mode:
authorsarada prasad sahoo <sarada.prasad.sahoo@huawei.com>2019-10-07 12:34:49 +0530
committersarada prasad sahoo <sarada.prasad.sahoo@huawei.com>2019-10-07 12:34:49 +0530
commit6392515d91c00df8cb925ec9e99273a2f9e4744f (patch)
tree7877fd63f456ddfc7e23d64a89138c0d3d02f64e /asdc-controller/src/main
parent6f8ed4f558226640d00b2069ae3e8d254364f80a (diff)
SO Distribution Error on Allotted Resource
SO Distribution Error on Allotted Resource - duplicate primary Issue-ID: SO-2351 Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com> Change-Id: Iae7bda27ac4975b5ede657ac485472bbc6e88c56
Diffstat (limited to 'asdc-controller/src/main')
-rw-r--r--asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java4
1 files changed, 3 insertions, 1 deletions
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);
+ }
}
}
}