parttool: make part_list an optional argument

Previous versions of PartitionType only required type and subtype as
arguments for the constructor. Make the new part_list argument optional to
keep backwards compatibilty
This commit is contained in:
Marius Vikhammer 2020-10-10 09:46:51 +08:00
parent eb83878323
commit b3e7b58d04

View File

@ -59,7 +59,7 @@ class PartitionName(_PartitionId):
class PartitionType(_PartitionId):
def __init__(self, p_type, subtype, part_list):
def __init__(self, p_type, subtype, part_list=None):
_PartitionId.__init__(self, p_type=p_type, subtype=subtype, part_list=part_list)