mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
firstboot: Only add steps from modules if they have completed setup
This commit is contained in:
parent
0fdc0ffe52
commit
9da23fa560
@ -69,7 +69,8 @@ def _get_steps():
|
||||
modules = module_loader.loaded_modules
|
||||
for module_object in modules.values():
|
||||
if getattr(module_object, 'first_boot_steps', None):
|
||||
steps.extend(module_object.first_boot_steps)
|
||||
if module_object.setup_helper.get_state() != 'needs-setup':
|
||||
steps.extend(module_object.first_boot_steps)
|
||||
|
||||
_all_first_boot_steps = sorted(steps, key=operator.itemgetter('order'))
|
||||
return _all_first_boot_steps
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user