accidentlly called dict as function

This commit is contained in:
advaithm 2021-04-02 10:12:45 +05:30
parent b974b93004
commit 655ec06119
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ class Filesystem():
previous_partitions = self.blockdevice.partitions
if self.mode == MBR:
if len(self.blockdevice.partitions())>3:
if len(self.blockdevice.partitions)>3:
DiskError("Too many partitions on disk, MBR disks can only have 3 parimary partitions")
if format:
partitioning = self.parted(f'{self.blockdevice.device} mkpart {type} {format} {start} {end}') == 0