topherinternational commented on code in PR #71692:
URL: https://github.com/apache/airflow/pull/71692#discussion_r3833845889
##########
providers/opensearch/src/airflow/providers/opensearch/log/os_task_handler.py:
##########
@@ -219,9 +219,13 @@ def _create_opensearch_client(
) -> OpenSearch:
parsed_url = urlparse(_format_url(host))
resolved_port = port if port is not None else (parsed_url.port or 9200)
+ connection_kwargs: dict[str, Any] = {
+ "hosts": [{"host": parsed_url.hostname, "port": resolved_port,
"scheme": parsed_url.scheme}]
+ }
+ if username and password:
Review Comment:
Woof, you're right - fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]