dynamicdns: Split app initialization

Tests:

- When configured, after startup, Dynamic DNS domain 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:56:23 -08:00 committed by James Valleroy
parent 249c713bb5
commit b163423a26
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -80,6 +80,9 @@ class DynamicDNSApp(app_module.App):
**manifest.backup)
self.add(backup_restore)
@staticmethod
def post_init():
"""Perform post initialization operations."""
current_status = get_status()
if current_status['enabled']:
domain_added.send_robust(sender='dynamicdns',