pagekite: Split app initialization

Tests:

- When configured, upon startup, pagekite domains shows up in the names module.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2021-11-14 12:03:50 -08:00 committed by James Valleroy
parent 1d17ba2134
commit e5b56e44f1
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -89,6 +89,8 @@ class PagekiteApp(app_module.App):
**manifest.backup)
self.add(backup_restore)
def post_init(self):
"""Perform post initialization operations."""
# Register kite name with Name Services module.
setup_helper = globals()['setup_helper']
if setup_helper.get_state() != 'needs-setup' and self.is_enabled():