From 45456f1147a6dc7bd266e6246356c8e9eff0c5b6 Mon Sep 17 00:00:00 2001 From: Dmitry Ratushnyy <132273757+dmitry-ratushnyy@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:56:14 +0200 Subject: [PATCH] Update src/charm.py Co-authored-by: Mia Altieri <32723809+MiaAltieri@users.noreply.github.com> --- src/charm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/charm.py b/src/charm.py index 8e41c612a..103fb481b 100755 --- a/src/charm.py +++ b/src/charm.py @@ -599,6 +599,8 @@ def _on_secret_changed(self, event: SecretChangedEvent): return logging.debug("Secret %s for scope %s changed, refreshing", event.secret.id, scope) self._update_juju_secrets_cache(scope) + + # changed secrets means that the URIs used for PBM and mongodb_exporter are now out of date self._connect_mongodb_exporter() self._connect_pbm_agent()