From 758a6ab129fcc08e28b3121ac66d36c5e46d193b Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Thu, 22 Aug 2024 11:07:20 +0000 Subject: [PATCH] Make reading of deployer options case sensitive One of the tempest plugins contains an option that is case sensitive. Therefore, the reading of the deployer input option has to be case sensitive as well. The default behavior of ConfigParser is to return lowever-case version of the option names. This commit changes that. Change-Id: I53e722dbe8c7fe8dfc1079c5ed9fe07b449d9200 --- config_tempest/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config_tempest/main.py b/config_tempest/main.py index 33337e29..5351a693 100755 --- a/config_tempest/main.py +++ b/config_tempest/main.py @@ -136,6 +136,11 @@ def read_deployer_input(deployer_input_file, conf): LOG.info("Adding options from deployer-input file '%s'", deployer_input_file) deployer_input = configparser.ConfigParser() + # the following transforms the option names as found in an input file, + # the default implementation returns a lower-case version of the + # option names, however, we have at least one option that contains + # capitalized letters - RBAC_test_type from octavia-tempest-plugin + deployer_input.optionxform = str deployer_input.read(deployer_input_file) for section in deployer_input.sections(): # There are no deployer input options in DEFAULT