From 259f3ae4ab8649549f752367c198c07b9da8aa6e Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Tue, 7 Feb 2023 17:20:47 +0000 Subject: Fix setting input values destroys constraints Signed-off-by: MichaelMorris Issue-ID: SDC-4374 Change-Id: I7cfb377cc8008ab042a38824a4aad3d1b74723c0 --- .../org/openecomp/sdc/be/model/operations/impl/PropertyOperation.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/PropertyOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/PropertyOperation.java index fa6df00d5a..0b8d2c8cb1 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/PropertyOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/PropertyOperation.java @@ -2178,7 +2178,6 @@ public class PropertyOperation extends AbstractOperation implements IPropertyOpe if (constraintType == null) { log.warn("ConstraintType was not found for constraint name:{}", key); } else { - if (set.size() == 1 || (set.size() == 2 && ConstraintType.PATTERN == constraintType)) { final JsonElement value = element.getValue(); final Object typedValue = getTypedValue(value); switch (constraintType) { @@ -2297,7 +2296,6 @@ public class PropertyOperation extends AbstractOperation implements IPropertyOpe default: log.warn("Key {} is not supported. Ignored.", key); } - } } } return propertyConstraint; -- cgit 1.2.3-korg