Skip to content

Commit ba151d2

Browse files
Merge pull request #969 from chrisbonilla95/cbon-lx-691-databricks-ds-token-cred-fix
fix: proper cred loading for Databricks
2 parents 696c677 + 43e1c7e commit ba151d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model

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)