Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
35079d1fb0
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…
Reference in a new issue