1
0
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:
Kelly Brazil
2021-06-30 12:38:36 -07:00
parent d48abf312c
commit db47f35783
15 changed files with 610 additions and 3 deletions

View File

@ -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)