From: Michael Tremer Date: Mon, 10 May 2021 20:05:21 +0000 (+0000) Subject: disks: Do not scan for disks before the step is run X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4fb5285134c6d65e3e09d512f0acae43133164d;p=people%2Fms%2Fbricklayer.git disks: Do not scan for disks before the step is run Signed-off-by: Michael Tremer --- diff --git a/src/python/disk.py b/src/python/disk.py index 5827c0f..8a4cd20 100644 --- a/src/python/disk.py +++ b/src/python/disk.py @@ -410,15 +410,12 @@ class SelectDisk(step.InteractiveStep): """ Ask the user which disk(s) to use for the installation process """ - def initialize(self): - self.disks = self.bricklayer.disks - + def run(self): # Scan for disks - self.disks.scan() + self.bricklayer.disks.scan() - def run(self): # Create a dictionary with all disks - disks = { disk : "%s" % disk for disk in self.disks.supported } + disks = { disk : "%s" % disk for disk in self.bricklayer.disks.supported } # Show an error if no suitable disks were found if not disks: