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()