From c5e8e2cea83ffe37e0ff6fd2b407f21d962ffcc1 Mon Sep 17 00:00:00 2001 From: Andreas Misje Date: Fri, 7 Jun 2024 08:14:49 +0200 Subject: [PATCH] Add lax. datetime parsing to opensearch timeout setting --- src/wazuh/opensearch_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wazuh/opensearch_config.py b/src/wazuh/opensearch_config.py index c07ac5c..73397b2 100644 --- a/src/wazuh/opensearch_config.py +++ b/src/wazuh/opensearch_config.py @@ -180,7 +180,7 @@ def validate_http_url(cls, url: AnyHttpUrl) -> AnyHttpUrl: verify_url(url, throw=True) return url - @field_validator("search_after", mode="before") + @field_validator("search_after", "timeout", mode="before") @classmethod def parse_lax_datetime( cls, timestamp_str: datetime | timedelta | str | None