We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2502e6e commit 1bb95afCopy full SHA for 1bb95af
src/charm.py
@@ -1978,6 +1978,10 @@ def _restart_metrics_service(self) -> None:
1978
1979
def _restart_ldap_sync_service(self) -> None:
1980
"""Restart the LDAP sync service in case any configuration changed."""
1981
+ if not self._patroni.member_started:
1982
+ logger.debug("Restart LDAP sync early exit: Patroni has not started yet")
1983
+ return
1984
+
1985
container = self.unit.get_container("postgresql")
1986
sync_service = container.pebble.get_services(names=[self.ldap_sync_service])
1987
0 commit comments