fixed tabs and spaces problem

This commit is contained in:
advaithm 2021-01-22 16:18:12 +05:30
parent 40c6aad0ed
commit 905f10e9d2
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
1 changed files with 4 additions and 4 deletions

View File

@ -134,10 +134,10 @@ class Partition():
if (handle := sys_command(f'/usr/bin/mkfs.ext4 -F {self.path}')).exit_code != 0:
raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
self.filesystem = 'ext4'
elif filesystem == 'xfs':
if (handle:= sys_command(f'/usr/bin/mkfs.xfs -f {self.path}')).exit_code != 0:
raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
self.filesystem = 'xfs'
elif filesystem == 'xfs':
if (handle:= sys_command(f'/usr/bin/mkfs.xfs -f {self.path}')).exit_code != 0:
raise DiskError(f'Could not format {self.path} with {filesystem} because: {b"".join(handle)}')
self.filesystem = 'xfs'
else:
raise DiskError(f'Fileformat {filesystem} is not yet implemented.')
return True