mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add working sfdisk parser
This commit is contained in:
@ -154,7 +154,7 @@ def convert_to_bool(value):
|
||||
# if float converts, then bool the result
|
||||
# if float does not convert then look for truthy string and bool True
|
||||
# else False
|
||||
truthy = ['y', 'yes', 'true']
|
||||
truthy = ['y', 'yes', 'true', '*']
|
||||
|
||||
if isinstance(value, (int, float)):
|
||||
return bool(value)
|
||||
|
Reference in New Issue
Block a user