Skip to content

Commit

Permalink
Added safety to API call.
Browse files Browse the repository at this point in the history
  • Loading branch information
FastLee committed Jan 23, 2025
1 parent ac3a81e commit 0f4ebfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/databricks/labs/ucx/aws/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def list(self, include_names: set[str] | None = None) -> set[str]:

def list_glue(self) -> dict[str, str]:
# list existed service credentials that are using iam roles, capturing the arns and names
# TODO: replace with SDK call when available
try:
credential_response = self._ws.api_client.do('GET', '/api/2.1/unity-catalog/credentials')
except NotFound:
Expand Down

0 comments on commit 0f4ebfc

Please sign in to comment.