Remove Min/Max for Configuration Group Booleans
boolean configuration-group parameters at the moment require a min/max value of 0/1 to work around some faulty logic that is meant to validate integer values, but instead validates integer and boolean values. Closes-Bug: #1288507 Change-Id: I2d7556621e891b22291c7ef9e9c523e1ce98a047
This commit is contained in:
parent
ee1fc921a1
commit
481018d354
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user