This is an automated email from the ASF dual-hosted git repository.

phanikumv pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new a1ef232230 Use aiohttp.BasicAuth instead of HTTPBasicAuth for aiohttp 
session in databricks hook (#34590)
a1ef232230 is described below

commit a1ef2322304ea6ff9bc9744668c011ad13fad056
Author: Hussein Awala <[email protected]>
AuthorDate: Mon Sep 25 09:47:42 2023 +0200

    Use aiohttp.BasicAuth instead of HTTPBasicAuth for aiohttp session in 
databricks hook (#34590)
---
 airflow/providers/databricks/hooks/databricks_base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/providers/databricks/hooks/databricks_base.py 
b/airflow/providers/databricks/hooks/databricks_base.py
index 7210d46517..3fec74c343 100644
--- a/airflow/providers/databricks/hooks/databricks_base.py
+++ b/airflow/providers/databricks/hooks/databricks_base.py
@@ -262,7 +262,7 @@ class BaseDatabricksHook(BaseHook):
                 with attempt:
                     async with self._session.post(
                         resource,
-                        auth=HTTPBasicAuth(self.databricks_conn.login, 
self.databricks_conn.password),
+                        auth=aiohttp.BasicAuth(self.databricks_conn.login, 
self.databricks_conn.password),
                         data="grant_type=client_credentials&scope=all-apis",
                         headers={
                             **self.user_agent_header,

Reply via email to