]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Enhance V2 validations to work better for integers and booleans
authorGary Kotton <gkotton@redhat.com>
Thu, 19 Jul 2012 12:51:38 +0000 (08:51 -0400)
committerGary Kotton <gkotton@redhat.com>
Fri, 20 Jul 2012 18:09:16 +0000 (14:09 -0400)
commit73ec08b7fc88cb30ab449ba9e05e0818a4b5b78e
tree9a8b7d87ea9d12d0c4e41d98913f349d02b53b47
parent71eac0df7b23a5021210f0d5b092a9ddf0edf067
Enhance V2 validations to work better for integers and booleans

Fixes bug 1026598

The attributes are now able to cast a input value to a specific type.
At the moment boolean and int are supported.

Change-Id: I568a95bc60f91c3eeae03b305031502d50de9c44
quantum/api/v2/attributes.py
quantum/api/v2/base.py
quantum/tests/unit/test_db_plugin.py