BoolOpt defaults to None
Bug #1764782 reported by
Ben Nemec
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
If no default is passed to a BoolOpt, it appears to default to None. This is an invalid Boolean value, per the type definition: https:/
We should fix BoolOpt so it defaults to a valid Boolean value, probably False.
To post a comment you must log in.
Do we have any projects using that None value to indicate that the boolean value hasn't been set by the user? We have another way to do that now, so we could get them to update, but that's the only thing that comes to mind that would make me hesitate to change the behavior.