From: Aleš Mrázek Date: Tue, 25 Jul 2023 08:20:16 +0000 (+0200) Subject: replace '_' with '-' in validation error path X-Git-Tag: v6.0.2~25^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=756cc5869b6254ef3c8bb61bcf6281184f10262e;p=thirdparty%2Fknot-resolver.git replace '_' with '-' in validation error path This is not the best way to do it, but it is the easiest. --- 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: