1
0
Fork 0

Fix parsing/validation for 21939 (#22148)

This commit is contained in:
Joel Challis 2023-09-27 03:57:37 +01:00 committed by GitHub
parent 32de27bb20
commit 4e86dca49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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':