Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files Browse the repository at this point in the history
Leftover from #44
carlcsaposs-canonical committed Aug 11, 2023
1 parent a98b491 commit 3ae2d81
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
@@ -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()
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 =

0 comments on commit 3ae2d81

Please sign in to comment.