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 authored and imanenami committed Nov 20, 2024
1 parent fdf7c18 commit fdeb4cd
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 fdeb4cd

Please sign in to comment.