mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
letsencrypt: Remove unused listen to domain change signal
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
012db6ac93
commit
bd05c43d32
@ -29,8 +29,7 @@ from plinth import app as app_module
|
||||
from plinth import cfg, menu
|
||||
from plinth.errors import ActionError
|
||||
from plinth.modules import names
|
||||
from plinth.signals import (domain_added, domain_removed, domainname_change,
|
||||
post_module_loading)
|
||||
from plinth.signals import domain_added, domain_removed, post_module_loading
|
||||
from plinth.utils import format_lazy
|
||||
|
||||
from . import components
|
||||
@ -92,7 +91,6 @@ def init():
|
||||
app = LetsEncryptApp()
|
||||
app.set_enabled(True)
|
||||
|
||||
domainname_change.connect(on_domainname_change)
|
||||
domain_added.connect(on_domain_added)
|
||||
domain_removed.connect(on_domain_removed)
|
||||
|
||||
@ -150,13 +148,6 @@ def certificate_delete(domain):
|
||||
components.on_certificate_event('deleted', [domain], None)
|
||||
|
||||
|
||||
def on_domainname_change(sender, old_domainname, new_domainname, **kwargs):
|
||||
"""Drop the certificate after a domain name change."""
|
||||
del sender # Unused
|
||||
del new_domainname # Unused
|
||||
del kwargs # Unused
|
||||
|
||||
|
||||
def on_domain_added(sender, domain_type='', name='', description='',
|
||||
services=None, **kwargs):
|
||||
"""Obtain a certificate for the new domain"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user