Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
### New Features and Improvements

### Bug Fixes

- Improving the error message that is shown when the unsupported `dbutils.credentials.getServiceCredentialsProvider` method is used. This method can only be used inside of a notebook.

### Documentation

### Internal Changes

- Use the `Config`'s `retry_timeout_seconds` when fetching account and workspace endpoints

### API Changes
10 changes: 7 additions & 3 deletions databricks/sdk/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import requests

from . import useragent
from ._base_client import _fix_host_if_needed
from ._base_client import _BaseClient, _fix_host_if_needed
from .clock import Clock, RealClock
from .credentials_provider import (CredentialsStrategy, DefaultCredentials,
OAuthCredentialsProvider)
Expand Down Expand Up @@ -392,8 +392,12 @@ def oidc_endpoints(self) -> Optional[OidcEndpoints]:
if self.is_azure and self.azure_client_id:
return get_azure_entra_id_workspace_endpoints(self.host)
if self.is_account_client and self.account_id:
return get_account_endpoints(self.host, self.account_id)
return get_workspace_endpoints(self.host)
return get_account_endpoints(
self.host,
self.account_id,
client=_BaseClient(retry_timeout_seconds=self.retry_timeout_seconds)
)
return get_workspace_endpoints(self.host, client=_BaseClient(retry_timeout_seconds=self.retry_timeout_seconds))

def debug_string(self) -> str:
"""Returns log-friendly representation of configured attributes"""
Expand Down