commit | 528bd0cd6155bc9a3d2467969b327c2bd62d6f45 | [log] [tgz] |
---|---|---|
author | MichaelMorris <michael.morris@est.tech> | Thu Sep 02 12:19:07 2021 +0100 |
committer | Andr� Schmid <andre.schmid@est.tech> | Mon Sep 06 14:00:47 2021 +0000 |
tree | a772a2ef3b409cf492b8f4eb746f8140ca5f1b8a | |
parent | 9534496497b037f4bfb26603f91b54f41e65774a [diff] |
Not possible to set max occurrences to zero Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3711 Change-Id: I512abaca1defade0bee259b330eca2fea322eaf7
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 4f65230..1503835 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 @@ 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); }