quassel: Don't handle certificates if not installed

Tests:

- Without these changes, with Quassel not-installed, change the domain name.
Notice that certificate events for Quassel fails due to missing domain
information.

- With these changes, with Quassel not-installed, change the domain name. Notice
that certificate events for Quassel don't result in any actions.

- With these changes, with Quassel installed, change the domain name. Notice
that certificate events for Quassel succeed.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2020-09-10 21:48:45 -07:00 committed by James Valleroy
parent 53b6203473
commit 5f4e2673f3
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -134,6 +134,10 @@ def get_domain():
def get_domains():
"""Return a list with the configured domain for quassel."""
setup_helper = globals()['setup_helper']
if setup_helper.get_state() == 'needs-setup':
return []
domain = get_domain()
if domain:
return [domain]