selecting disk by id/size should return a BlockDevice()
This commit is contained in:
parent
ace6beb209
commit
0f2d61ba08
|
|
@ -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()):
|
if model and (collection[drive]['model'] is None or collection[drive]['model'].lower() != model.lower()):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
return drive
|
return BlockDevice(drive['path'], drive)
|
||||||
Loading…
Reference in New Issue