Merge "Remove Min/Max for Configuration Group Booleans"

This commit is contained in:
Jenkins 2014-03-11 08:37:55 +00:00 committed by Gerrit Code Review
commit 986b0572bc

View File

@ -198,7 +198,7 @@ class ConfigurationsController(wsgi.Controller):
raise exception.UnprocessableEntity(message=msg)
# integer min/max checking
if isinstance(v, int):
if isinstance(v, int) and not isinstance(v, bool):
try:
min_value = int(rule.get('min'))
except ValueError: