From 528bd0cd6155bc9a3d2467969b327c2bd62d6f45 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Thu, 2 Sep 2021 12:19:07 +0100 Subject: Not possible to set max occurrences to zero Signed-off-by: MichaelMorris Issue-ID: SDC-3711 Change-Id: I512abaca1defade0bee259b330eca2fea322eaf7 --- .../org/openecomp/sdc/be/components/impl/ResourceImportManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit 1.2.3-korg