Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent infinite deferals and secret changed hooks #423

Open
wants to merge 2 commits into
base: 6/edge
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/charms/mongodb/v0/mongodb_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 14
LIBPATCH = 15

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -217,7 +217,6 @@ def _on_certificate_available(self, event: CertificateAvailableEvent) -> None:
logger.debug(
"Defer till both internal and external TLS certificates available to avoid second restart."
)
event.defer()
return

logger.info("Restarting mongod with TLS enabled.")
Expand Down
Loading