aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests
diff options
context:
space:
mode:
authorEzhilarasi <ezhrajam@in.ibm.com>2019-09-03 16:07:15 +0530
committerEzhilarasi <ezhrajam@in.ibm.com>2019-09-03 16:07:22 +0530
commit083e8d0575d80d5d539a4ef83d8f4800074b7bcd (patch)
tree161eb7666515e80dee188ca552803e550eeaa9dc /ice_validator/tests
parentc945b7e0efafee4a46bdf295a22ceff2f0b63e49 (diff)
Sonar issue fix in helpers.py
Change-Id: Ief18c717974498ea9b5f1fd2e2987db0d013b732 Issue-ID: VVP-172 Signed-off-by: Ezhilarasi <ezhrajam@in.ibm.com>
Diffstat (limited to 'ice_validator/tests')
-rw-r--r--ice_validator/tests/helpers.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ice_validator/tests/helpers.py b/ice_validator/tests/helpers.py
index 94effed..fefa8de 100644
--- a/ice_validator/tests/helpers.py
+++ b/ice_validator/tests/helpers.py
@@ -305,9 +305,7 @@ def parameter_type_to_heat_type(parameter):
parameter_type = "string"
elif isinstance(parameter, dict):
parameter_type = "json"
- elif isinstance(parameter, int):
- parameter_type = "number"
- elif isinstance(parameter, float):
+ elif isinstance(parameter, int) or isinstance(parameter, float):
parameter_type = "number"
elif isinstance(parameter, bool):
parameter_type = "boolean"