Skip to content

Commit

Permalink
Retrieve SAS token (kubeflow#2418)
Browse files Browse the repository at this point in the history
Signed-off-by: tjandy98 <tjandy98@gmail.com>

Signed-off-by: tjandy98 <tjandy98@gmail.com>
  • Loading branch information
tjandy98 authored Oct 9, 2022
1 parent 55cb163 commit aa293a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/kserve/kserve/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ def _download_azure_blob(uri, out_dir: str): # pylint: disable=too-many-locals
account_name,
container_name,
prefix)
token = Storage._get_azure_storage_token()
token = Storage._get_azure_storage_token() or Storage._get_azure_storage_access_key()
if token is None:
logging.warning("Azure credentials not found, retrying anonymous access")
logging.warning("Azure credentials or shared access signature token not found, retrying anonymous access")

blob_service_client = BlobServiceClient(account_url, credential=token)
container_client = blob_service_client.get_container_client(container_name)
Expand Down

0 comments on commit aa293a8

Please sign in to comment.