aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2021-09-02 12:19:07 +0100
committerAndr� Schmid <andre.schmid@est.tech>2021-09-06 14:00:47 +0000
commit528bd0cd6155bc9a3d2467969b327c2bd62d6f45 (patch)
treea772a2ef3b409cf492b8f4eb746f8140ca5f1b8a /catalog-be
parent9534496497b037f4bfb26603f91b54f41e65774a (diff)
Not possible to set max occurrences to zero
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3711 Change-Id: I512abaca1defade0bee259b330eca2fea322eaf7
Diffstat (limited to 'catalog-be')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java
index 4f65230383..1503835d09 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java
@@ -844,7 +844,7 @@ public class ResourceImportManager {
log.debug("Invalid occurrenses format. Max occurrence is {}", maxObj);
throw new ByActionStatusComponentException(ActionStatus.INVALID_OCCURRENCES);
}
- if (maxOccurrences <= 0 || maxOccurrences < minOccurrences) {
+ if (maxOccurrences < 0 || maxOccurrences < minOccurrences) {
log.debug("Invalid occurrenses format. min occurrence is {}, Max occurrence is {}", minOccurrences, maxOccurrences);
throw new ByActionStatusComponentException(ActionStatus.INVALID_OCCURRENCES);
}