refactor: drop legacy routes path fallback from _routes_path
This commit is contained in:
@@ -58,12 +58,7 @@ def validate_routes_content(content: str) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def _routes_path(slug: str) -> Path:
|
def _routes_path(slug: str) -> Path:
|
||||||
state_dir = egress_state_dir(slug)
|
return egress_state_dir(slug) / EGRESS_ROUTES_FILENAME
|
||||||
routes_path = state_dir / EGRESS_ROUTES_FILENAME
|
|
||||||
legacy_path = state_dir / "egress_routes.yaml"
|
|
||||||
if legacy_path.exists() and not routes_path.exists():
|
|
||||||
return legacy_path
|
|
||||||
return routes_path
|
|
||||||
|
|
||||||
|
|
||||||
def _signal_bundle_reload(slug: str) -> None:
|
def _signal_bundle_reload(slug: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user