In quota_classes and quotas update API, parameters are checked
whether they are integer or not.
But when pass float values to these APIs, error doesn't occur.
Float values should be forbidden for the following reasons.
(1)If the value that user submitted and the value registered
actually are different, user will be confused.
(2)Error messages of these APIs are "...must be integer...".
(3)In horizon, if a float is submitted, error message is displayed.
Reviewed: https:/ /review. openstack. org/53056 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=01e1c027754 b47239b9f9a6c40 196512ec262986
Committed: https:/
Submitter: Jenkins
Branch: master
commit 01e1c027754b472 39b9f9a6c401965 12ec262986
Author: Yuiko Takada <email address hidden>
Date: Tue Oct 22 05:42:35 2013 +0000
Fix parameter checking about quota update api
In quota_classes and quotas update API, parameters are checked
whether they are integer or not.
But when pass float values to these APIs, error doesn't occur.
Float values should be forbidden for the following reasons.
(1)If the value that user submitted and the value registered
actually are different, user will be confused.
(2)Error messages of these APIs are "...must be integer...".
(3)In horizon, if a float is submitted, error message is displayed.
This patch fixes this problem.
Change-Id: I4c7df52ffff2d9 97da4e6267e25ec 2ea4ab6f153
Closes-Bug: #1243037