From 0acd2255e1514fae4e71222fd058e4ef536e2c2e Mon Sep 17 00:00:00 2001 From: Iman Enami Date: Fri, 15 Nov 2024 11:05:02 +0400 Subject: [PATCH] emit config-changed instead of restart --- src/events/tls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/tls.py b/src/events/tls.py index dc43b108..b007f3f1 100644 --- a/src/events/tls.py +++ b/src/events/tls.py @@ -140,7 +140,7 @@ def _trusted_relation_created(self, event: EventBase) -> None: if not self.charm.state.cluster.mtls_enabled: # Create a "mtls" flag so a new listener (CLIENT_SSL) is created self.charm.state.cluster.update({"mtls": "enabled"}) - self.charm.on[f"{self.charm.restart.name}"].acquire_lock.emit() + self.charm.on.config_changed.emit() self.charm.app.status = ActiveStatus()