Skip to content

Commit

Permalink
emit config-changed instead of restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Iman Enami committed Nov 15, 2024
1 parent eed2a91 commit 4391ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4391ec1

Please sign in to comment.