-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
databricks-sql-cli/dbsqlcli/main.py
Lines 61 to 67 in 345ca09
| def apply_credentials_from_cfg(hostname, http_path, access_token, auth_type, cfg): | |
| """ | |
| Returns http_path, hostname, access_token and auth_type from the passed configuration or from clirc file. | |
| """ | |
| if not cfg.get("credentials"): | |
| return hostname, http_path, access_token |
This function should return four values:
databricks-sql-cli/dbsqlcli/main.py
Lines 91 to 94 in 345ca09
| # Prefer CLI arguments. Fall back to the clirc file otherwise | |
| hostname, http_path, access_token, auth_type = apply_credentials_from_cfg( | |
| hostname, http_path, access_token, auth_type, _cfg | |
| ) |
Metadata
Metadata
Assignees
Labels
No labels