Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed May 6, 2024
1 parent 21a088d commit 0069bd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions databricks/sdk/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def _load_azure_tenant_id(cfg: 'Config'):
resp = requests.get(f'{cfg.host}/aad/auth', allow_redirects=False)
entra_id_endpoint = resp.headers.get('Location')
if entra_id_endpoint is None:
logging.debug(f'No Location header in response from {cfg.host}/aad/auth')
return
url = parse.urlparse(entra_id_endpoint)
cfg.azure_tenant_id = url.path.split('/')[1]
Expand Down

0 comments on commit 0069bd6

Please sign in to comment.