Merge pull request #72 from Torxed/drive-select

selecting disk by id/size should return a BlockDevice()
This commit is contained in:
Anton Hvornum 2020-12-06 22:10:46 +01:00 committed by GitHub
commit 3715e3a11b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -278,4 +278,4 @@ def harddrive(size=None, model=None, fuzzy=False):
if model and (collection[drive]['model'] is None or collection[drive]['model'].lower() != model.lower()):
continue
return drive
return BlockDevice(drive['path'], drive)