Skip to content

Commit df4e28f

Browse files
Remove bootstrapping after TLS enabled/disabled (#58)
Ported from canonical/mysql-router-k8s-operator#117 Leftover from #44
1 parent a98b491 commit df4e28f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/workload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def _restart(self, *, tls: bool) -> None:
217217
"""Restart MySQL Router to enable or disable TLS."""
218218
logger.debug("Restarting MySQL Router")
219219
assert self._container.mysql_router_service_enabled is True
220-
self._bootstrap_router(tls=tls)
221220
self._container.update_mysql_router_service(enabled=True, tls=tls)
222221
logger.debug("Restarted MySQL Router")
223222
self._charm.wait_until_mysql_router_ready()

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ deps =
6161
pytest-xdist
6262
; `pytest-cov` used instead of `coverage` for `pytest-xdist` support
6363
pytest-cov
64+
# Workaround for https://github.com/canonical/ops-scenario/issues/48
65+
ops<2.5
6466
ops-scenario
6567
-r {tox_root}/requirements.txt
6668
commands =

0 commit comments

Comments
 (0)