diff --git a/python-avd/pyavd/_errors/__init__.py b/python-avd/pyavd/_errors/__init__.py index 5edb7341190..ef02a2dd3e6 100644 --- a/python-avd/pyavd/_errors/__init__.py +++ b/python-avd/pyavd/_errors/__init__.py @@ -91,7 +91,7 @@ def __init__( def _as_validation_error(self) -> AvdValidationError: """Converting AvdDeprecationWarning to AvdValidationError.""" - return AvdValidationError(self.message, self.path.split(".")) + return AvdValidationError(message=self.message, path=self.path.split(".")) class AristaAvdDuplicateDataError(AristaAvdError):