Skip to content

Commit

Permalink
Add lax. datetime parsing to opensearch timeout setting
Browse files Browse the repository at this point in the history
  • Loading branch information
misje committed Jun 7, 2024
1 parent 9ad8d73 commit c5e8e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wazuh/opensearch_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5e8e2c

Please sign in to comment.