selecting disk by id/size should return a BlockDevice()

This commit is contained in:
Anton Hvornum 2020-12-06 22:02:41 +01:00
parent ace6beb209
commit 0f2d61ba08
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)