summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2017-09-19 14:54:10 +0100
committerStephen Finucane <sfinucan@redhat.com>2017-09-19 14:55:16 +0100
commitf4d6b759759c53b021f5e61c5e002d1b060993f9 (patch)
tree79f5c02a64efe9e0f5120ab7a12002e4135534c3
parent85daf7a6eb5e6e25a33d3ec0558242933741f129 (diff)
downloadoslo-config-f4d6b759759c53b021f5e61c5e002d1b060993f9.tar.gz
Use boolean where expected
The 'ignore_case' should be a boolean. Make it so and avoid the momentary confusion where you figure out why this works. TrivialFix Change-Id: I66ce1b4f00cdeefb901a8bbdb30dcadc41e9b83f
-rw-r--r--oslo_config/cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_config/cfg.py b/oslo_config/cfg.py
index e5f2b91..0070dbd 100644
--- a/oslo_config/cfg.py
+++ b/oslo_config/cfg.py
@@ -1251,7 +1251,7 @@ class StrOpt(Opt):
"""
def __init__(self, name, choices=None, quotes=None,
- regex=None, ignore_case=None, max_length=None, **kwargs):
+ regex=None, ignore_case=False, max_length=None, **kwargs):
super(StrOpt, self).__init__(name,
type=types.String(
choices=choices,