config: Split app configuration

Tests:

- After startup, the configured domain name shows up in 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 11:59:30 -08:00 committed by James Valleroy
parent 6429806114
commit c27000c6d6
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -68,6 +68,9 @@ class ConfigApp(app_module.App):
'config:index', can_have_certificate=True)
self.add(domain_type)
@staticmethod
def post_init():
"""Perform post initialization operations."""
# Register domain with Name Services module.
domainname = get_domainname()
if domainname: