From 0f2d61ba08485a52429ddee9d3e4a9bd5a976200 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 6 Dec 2020 22:02:41 +0100 Subject: selecting disk by id/size should return a BlockDevice() --- archinstall/lib/disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall') diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py index 2f3c122f..fe255991 100644 --- a/archinstall/lib/disk.py +++ b/archinstall/lib/disk.py @@ -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 \ No newline at end of file + return BlockDevice(drive['path'], drive) \ No newline at end of file -- cgit v1.2.3-70-g09d2