Skip to content

Commit 1f8492c

Browse files
Update databricks/sdk/credentials_provider.py
Co-authored-by: Renaud Hartert <[email protected]> Signed-off-by: Ilia Babanov <[email protected]>
1 parent a6763ee commit 1f8492c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

databricks/sdk/credentials_provider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ def refresh(self) -> Token:
684684
self.METADATA_SERVICE_HOST_HEADER: self.host
685685
},
686686
proxies={
687-
# Metadata URL usually points to localhost, and the requests package doesn't exclude localhost from proxies by default
687+
# Explicitly exclude localhost from being proxied. This is necessary
688+
# for Metadata URLs which typically point to localhost.
688689
"no_proxy": "localhost,127.0.0.1"
689690
})
690691
json_resp: dict[str, Union[str, float]] = resp.json()

0 commit comments

Comments
 (0)