*: Use the App's state management API

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2021-12-04 16:37:40 -05:00
1 parent 78b08758a3
commit b609abe7e5
23 files changed
+83 -96

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ def _get_steps():
modules = module_loader.loaded_modules
for module_object in modules.values():
if getattr(module_object, 'first_boot_steps', None):
if module_object.setup_helper.get_state() != 'needs-setup':
if not module_object.app.needs_setup():
steps.extend(module_object.first_boot_steps)
_all_first_boot_steps = sorted(steps, key=operator.itemgetter('order'))