Skip to content

Commit 6f58d6d

Browse files
change product code to pass http_auth if either or both username and/or password are non-empty
1 parent c37682e commit 6f58d6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

providers/opensearch/src/airflow/providers/opensearch/log/os_task_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _create_opensearch_client(
222222
connection_kwargs: dict[str, Any] = {
223223
"hosts": [{"host": parsed_url.hostname, "port": resolved_port, "scheme": parsed_url.scheme}]
224224
}
225-
if username and password:
225+
if username or password:
226226
connection_kwargs["http_auth"] = (username, password)
227227
return OpenSearch(
228228
**connection_kwargs,

0 commit comments

Comments
 (0)