From 4421ef2ce0e2bd7d4290aaa98f567b210bc8aa6d Mon Sep 17 00:00:00 2001 From: talio Date: Tue, 21 Nov 2017 10:48:02 +0200 Subject: nova server validator fix validation of comma delimited list value Issue - Id : SDC-670 Change-Id: Ic8b6f4b1358679ffacba4f8b832595f649b2fde5 Signed-off-by: talio --- .../org/openecomp/sdc/heat/datatypes/DefinedHeatParameterTypes.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openecomp-be/lib') diff --git a/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/DefinedHeatParameterTypes.java b/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/DefinedHeatParameterTypes.java index 54b071f651..0367d0969e 100644 --- a/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/DefinedHeatParameterTypes.java +++ b/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/DefinedHeatParameterTypes.java @@ -93,7 +93,8 @@ public enum DefinedHeatParameterTypes { } private static boolean isValueCommaDelimitedList(Object value) { - return String.valueOf(value).contains(",") + return value instanceof List + || String.valueOf(value).contains(",") || isValueIsFromGivenType(value, DefinedHeatParameterTypes.STRING.type); } -- cgit 1.2.3-korg