Disabling strict mode for ConfigParser in read_ini

It's possible that some options are duplicated as list in some config
file. If we don't disable strict mode, validations_read_ini will fail to
parse a config file.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1950544
Change-Id: I4ce22adcffec49e9cce1d9a45757aa8577f2fc71
This commit is contained in:
David Vallee Delisle 2021-04-26 21:46:52 -04:00
parent a38d34dd82
commit c6508ad004
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def get_result(path, section, key, default=None):
msg = ''
value = None
config = ConfigParser.SafeConfigParser()
config = ConfigParser.SafeConfigParser(strict=False)
try:
config.read(path)