On force-down action API, its forced_down parameter is defined as
parameter_types.boolean which allows string values like 'True',
'False', etc. However the API code didn't contain bool_from_string
call which converts string value to boolean value. In addition,
the parameter is defined as BooleanField in the service object.
So if the string value is passed on forced_down parameter, HTTP
500 error happaned. This patch fixes this problem by adding
bool_from_string call.
Reviewed: https:/ /review. openstack. org/473564 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d0d7fc3a19d ba48fa988b995db 620e0da066381a
Committed: https:/
Submitter: Jenkins
Branch: master
commit d0d7fc3a19dba48 fa988b995db620e 0da066381a
Author: Ken'ichi Ohmichi <email address hidden>
Date: Mon Jun 12 12:37:20 2017 -0700
Add bool_from_string for force-down action
On force-down action API, its forced_down parameter is defined as types.boolean which allows string values like 'True', from_string call.
parameter_
'False', etc. However the API code didn't contain bool_from_string
call which converts string value to boolean value. In addition,
the parameter is defined as BooleanField in the service object.
So if the string value is passed on forced_down parameter, HTTP
500 error happaned. This patch fixes this problem by adding
bool_
Closes-Bug: #1697497
Change-Id: Ifca579d1bb43ec e190c633b3ea1ff a476daf6e34