Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _inject_base(self, credentials: dict[str, Any]) -> DeclarativeDataSources:
token = TokenCredentialsFromFile.token_from_file(credentials[data_source.id])
data_sources.append(data_source.to_api(token=token))
elif data_source.type == DATABRICKS_TYPE:
if data_source.client_id is not None:
if data_source.client_id and data_source.client_id.strip():
client_secret = ClientSecretCredentialsFromFile.client_secret_from_file(
credentials[data_source.id]
)
Expand Down
2 changes: 1 addition & 1 deletion gooddata-sdk/gooddata_sdk/catalog/data_source/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def test_data_sources_connection(
declarative_data_source.to_test_request(token=token)
)
elif declarative_data_source.type == DATABRICKS_TYPE:
if declarative_data_source.client_id is not None:
if declarative_data_source.client_id and declarative_data_source.client_id.strip():
client_secret = ClientSecretCredentialsFromFile.client_secret_from_file(
credentials[declarative_data_source.id]
)
Expand Down
Loading