Skip to content

Commit 43e1c7e

Browse files
fix: proper cred loading for Databricks
client_id field may be empty string, improved check to account for this JIRA: LX-691 risk: low
1 parent 696c677 commit 43e1c7e

File tree

1 file changed

+1
-1
lines changed
  • gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model

1 file changed

+1
-1
lines changed

gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _inject_base(self, credentials: dict[str, Any]) -> DeclarativeDataSources:
3535
token = TokenCredentialsFromFile.token_from_file(credentials[data_source.id])
3636
data_sources.append(data_source.to_api(token=token))
3737
elif data_source.type == DATABRICKS_TYPE:
38-
if data_source.client_id is not None:
38+
if data_source.client_id and data_source.client_id.strip():
3939
client_secret = ClientSecretCredentialsFromFile.client_secret_from_file(
4040
credentials[data_source.id]
4141
)

0 commit comments

Comments
 (0)