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:
parent
a38d34dd82
commit
c6508ad004
@ -56,7 +56,7 @@ def get_result(path, section, key, default=None):
|
|||||||
|
|
||||||
msg = ''
|
msg = ''
|
||||||
value = None
|
value = None
|
||||||
config = ConfigParser.SafeConfigParser()
|
config = ConfigParser.SafeConfigParser(strict=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
config.read(path)
|
config.read(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user