commit | 4421ef2ce0e2bd7d4290aaa98f567b210bc8aa6d | [log] [tgz] |
---|---|---|
author | talio <tali.orenbach@amdocs.com> | Tue Nov 21 10:48:02 2017 +0200 |
committer | Avi Gaffa <avi.gaffa@amdocs.com> | Tue Nov 21 09:40:17 2017 +0000 |
tree | d69132765dbdf51a80ee23fa5955aab84f7f6ed5 | |
parent | 2b79f16651701fdfa04eb100bc83f2a42b8ed609 [diff] |
nova server validator fix validation of comma delimited list value Issue - Id : SDC-670 Change-Id: Ic8b6f4b1358679ffacba4f8b832595f649b2fde5 Signed-off-by: talio <tali.orenbach@amdocs.com>
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 54b071f..0367d09 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 @@ } private static boolean isValueCommaDelimitedList(Object value) { - return String.valueOf(value).contains(",") + return value instanceof List + || String.valueOf(value).contains(",") || isValueIsFromGivenType(value, DefinedHeatParameterTypes.STRING.type); }