cockpit: Split app initialization

Tests:

- When a domain is added it is added to the configuration file.

- When a domain is removed it is removed from the configuration file.

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:50:08 -08:00 committed by James Valleroy
parent 143bff3984
commit 2947e182cd
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -101,6 +101,9 @@ class CockpitApp(app_module.App):
**manifest.backup)
self.add(backup_restore)
@staticmethod
def post_init():
"""Perform post initialization operations."""
domain_added.connect(on_domain_added)
domain_removed.connect(on_domain_removed)