diff options
author | MichaelMorris <michael.morris@est.tech> | 2023-02-07 17:20:47 +0000 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2023-02-07 22:13:41 +0000 |
commit | 259f3ae4ab8649549f752367c198c07b9da8aa6e (patch) | |
tree | d7cc636e554b3c8025455b7466133bed2fe19806 | |
parent | 7b38d465210848af75c86c0233723ac991354896 (diff) |
Fix setting input values destroys constraints
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4374
Change-Id: I7cfb377cc8008ab042a38824a4aad3d1b74723c0
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/PropertyOperation.java | 2 |
1 files changed, 0 insertions, 2 deletions
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; |