diff options
author | talio <tali.orenbach@amdocs.com> | 2017-11-21 10:48:02 +0200 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2017-11-21 09:40:17 +0000 |
commit | 4421ef2ce0e2bd7d4290aaa98f567b210bc8aa6d (patch) | |
tree | d69132765dbdf51a80ee23fa5955aab84f7f6ed5 /openecomp-be/lib | |
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>
Diffstat (limited to 'openecomp-be/lib')
-rw-r--r-- | openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/DefinedHeatParameterTypes.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |