Fix parsing/validation for 21939 (#22148)
This commit is contained in:
parent
32de27bb20
commit
4e86dca49d
2 changed files with 4 additions and 2 deletions
|
@ -520,6 +520,8 @@ def _config_to_json(key_type, config_value):
|
|||
return list(map(str.strip, config_value.split(',')))
|
||||
|
||||
elif key_type == 'bool':
|
||||
if isinstance(config_value, bool):
|
||||
return config_value
|
||||
return config_value in true_values
|
||||
|
||||
elif key_type == 'hex':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue