set_override method can't hande parameter override=None when enforce_type=True
Bug #1515230 reported by
ChangBo Guo(gcb)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Fix Released
|
Low
|
ChangBo Guo(gcb) |
Bug Description
Method set_override will check parameter override's type when
enforce_type=True, If parameter override is None, it doesn't
work for some types like IntOpt, or doesn't work properly for StrOpt.
For IntOpt, it raises TypeError, and for StrOpt, it converts None to
string 'None', that's not we expect.
so need skip the parameter override=None for all types.
Changed in oslo.config: | |
assignee: | nobody → ChangBo Guo(gcb) (glongwave) |
status: | New → In Progress |
Changed in oslo.config: | |
importance: | Undecided → Low |
Changed in oslo.config: | |
milestone: | none → 3.1.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
code review: /review. openstack. org/#/c/ 243001/
https:/