From 17dee608eda32d45a5382451e9b07cfd688192e8 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 1ec3b734..f825bb89 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()