Add support for boolean configuration parameters
Bug #1288507 reported by
Khyati Sheth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Low
|
Auston McReynolds |
Bug Description
Currently if configuration parameter is specified as a boolean, it is converted to an int and we need to specify min, max constraints for integer. i.e. for boolean we need to specify min:0, max:1
This behavior is due to a bug in the code, where the int type is checked as isinstance(v, int). Since boolean is a subclass of int in Python, bool types are converted to int.
Fix :
Have isinstance(v, bool) check.
Changed in trove: | |
assignee: | nobody → Khyati Sheth (khysheth) |
description: | updated |
Changed in trove: | |
assignee: | Khyati Sheth (khysheth) → Auston McReynolds (amcrn) |
description: | updated |
Changed in trove: | |
milestone: | none → icehouse-rc1 |
importance: | Undecided → Low |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | icehouse-rc1 → 2014.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/78499
Review: https:/