Removed a breaking change while fixing hardware raids

This commit is contained in:
Anton Hvornum 2021-04-03 15:11:10 +02:00
parent 67bb00c655
commit 1c3287bc81
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 0 additions and 2 deletions

View File

@ -85,8 +85,6 @@ class BlockDevice():
if 'pkname' not in self.info:
raise DiskError(f'A crypt device ({self.path}) without a parent kernel device name.')
return f"/dev/{self.info['pkname']}"
else:
raise DiskError(f"Could not locate actual block device path for {self.path}")
# if not stat.S_ISBLK(os.stat(full_path).st_mode):
# raise DiskError(f'Selected disk "{full_path}" is not a block device.')