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

eladkal 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 301017de2d7 refactor: Updated instantiated of httpx AsyncClient as the 
proxies parameter is deprecated and mounts parameter should be used instead 
(#45464)
301017de2d7 is described below

commit 301017de2d76ac9aeb55f966ee580481dd88e525
Author: David Blain <[email protected]>
AuthorDate: Wed Jan 8 06:35:50 2025 +0100

    refactor: Updated instantiated of httpx AsyncClient as the proxies 
parameter is deprecated and mounts parameter should be used instead (#45464)
    
    Co-authored-by: David Blain <[email protected]>
---
 providers/src/airflow/providers/microsoft/azure/hooks/msgraph.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/src/airflow/providers/microsoft/azure/hooks/msgraph.py 
b/providers/src/airflow/providers/microsoft/azure/hooks/msgraph.py
index 9f97f862089..4a60022d738 100644
--- a/providers/src/airflow/providers/microsoft/azure/hooks/msgraph.py
+++ b/providers/src/airflow/providers/microsoft/azure/hooks/msgraph.py
@@ -288,7 +288,7 @@ class KiotaRequestAdapterHook(BaseHook):
             http_client = GraphClientFactory.create_with_default_middleware(
                 api_version=api_version,  # type: ignore
                 client=httpx.AsyncClient(
-                    proxies=httpx_proxies,
+                    mounts=httpx_proxies,
                     timeout=Timeout(timeout=self.timeout),
                     verify=verify,
                     trust_env=trust_env,

Reply via email to