From 756cc5869b6254ef3c8bb61bcf6281184f10262e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20Mr=C3=A1zek?= Date: Tue, 25 Jul 2023 10:20:16 +0200 Subject: [PATCH] replace '_' with '-' in validation error path This is not the best way to do it, but it is the easiest. --- manager/knot_resolver_manager/utils/modeling/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/knot_resolver_manager/utils/modeling/exceptions.py b/manager/knot_resolver_manager/utils/modeling/exceptions.py index dafb1ee23..34d25b876 100644 --- a/manager/knot_resolver_manager/utils/modeling/exceptions.py +++ b/manager/knot_resolver_manager/utils/modeling/exceptions.py @@ -20,7 +20,7 @@ class DataDescriptionError(DataModelingBaseException): class DataValidationError(DataModelingBaseException): def __init__(self, msg: str, tree_path: str, child_exceptions: "Iterable[DataValidationError]" = tuple()) -> None: super().__init__(msg) - self._tree_path = tree_path + self._tree_path = tree_path.replace("_", "-") self._child_exceptions = child_exceptions def where(self) -> str: -- 2.47.3