Added option to support case-insensitive keys
This change allows keys in INI format to be any case. The default ConfigParse module sets this to be lower however in some cases keys are needed to be upper and/or mixed. Change-Id: I4e0dedb1b73ee596929bd425af6b0aaefd3a6c27 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
cd47eda77b
commit
f946160dd0
@ -278,6 +278,7 @@ class ActionModule(object):
|
|||||||
dict_type=MultiKeyDict,
|
dict_type=MultiKeyDict,
|
||||||
allow_no_value=True
|
allow_no_value=True
|
||||||
)
|
)
|
||||||
|
config.optionxform = str
|
||||||
config_object = io.BytesIO(resultant.encode('utf-8'))
|
config_object = io.BytesIO(resultant.encode('utf-8'))
|
||||||
config.readfp(config_object)
|
config.readfp(config_object)
|
||||||
for section, items in config_overrides.items():
|
for section, items in config_overrides.items():
|
||||||
|
@ -277,6 +277,7 @@ class ActionModule(ActionBase):
|
|||||||
allow_no_value=True,
|
allow_no_value=True,
|
||||||
dict_type=MultiKeyDict
|
dict_type=MultiKeyDict
|
||||||
)
|
)
|
||||||
|
config.optionxform = str
|
||||||
except Exception:
|
except Exception:
|
||||||
config = ConfigTemplateParser(dict_type=MultiKeyDict)
|
config = ConfigTemplateParser(dict_type=MultiKeyDict)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user