]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Added option to support case-insensitive keys 904/head
authorKevin Carter <kevin.carter@rackspace.com>
Mon, 25 Jul 2016 21:37:23 +0000 (16:37 -0500)
committerKevin Carter <kevin.carter@rackspace.com>
Mon, 25 Jul 2016 21:39:23 +0000 (16:39 -0500)
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>
(cherry picked from commit https://github.com/openstack/openstack-ansible-plugins/commit/f946160dd0f370efb792bf084c7c20b18cf27c98)

plugins/actions/_v2_config_template.py

index b039db20d2980997826efca2a774a1c7a7f72a25..6870f96622fe5b808193deb306833a357e810731 100644 (file)
@@ -277,6 +277,7 @@ class ActionModule(ActionBase):
                 allow_no_value=True,
                 dict_type=MultiKeyDict
             )
+            config.optionxform = str
         except Exception:
             config = ConfigTemplateParser(dict_type=MultiKeyDict)