Skip to content

Commit

Permalink
Remove bootstrapping after TLS enabled/disabled (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed Aug 22, 2023
1 parent a98b491 commit df4e28f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def _restart(self, *, tls: bool) -> None:
"""Restart MySQL Router to enable or disable TLS."""
logger.debug("Restarting MySQL Router")
assert self._container.mysql_router_service_enabled is True
self._bootstrap_router(tls=tls)
self._container.update_mysql_router_service(enabled=True, tls=tls)
logger.debug("Restarted MySQL Router")
self._charm.wait_until_mysql_router_ready()
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ deps =
pytest-xdist
; `pytest-cov` used instead of `coverage` for `pytest-xdist` support
pytest-cov
# Workaround for https://github.com/canonical/ops-scenario/issues/48
ops<2.5
ops-scenario
-r {tox_root}/requirements.txt
commands =
Expand Down

0 comments on commit df4e28f

Please sign in to comment.