Skip to content

Commit

Permalink
Update databricks/sdk/credentials_provider.py
Browse files Browse the repository at this point in the history
Co-authored-by: Renaud Hartert <[email protected]>
Signed-off-by: Ilia Babanov <[email protected]>
  • Loading branch information
ilia-db and renaudhartert-db authored Jan 29, 2025
1 parent a6763ee commit 1f8492c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion databricks/sdk/credentials_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ def refresh(self) -> Token:
self.METADATA_SERVICE_HOST_HEADER: self.host
},
proxies={
# Metadata URL usually points to localhost, and the requests package doesn't exclude localhost from proxies by default
# Explicitly exclude localhost from being proxied. This is necessary
# for Metadata URLs which typically point to localhost.
"no_proxy": "localhost,127.0.0.1"
})
json_resp: dict[str, Union[str, float]] = resp.json()
Expand Down

0 comments on commit 1f8492c

Please sign in to comment.