From aa293a80b269274d976845a8d60cbe11ff78a340 Mon Sep 17 00:00:00 2001 From: tjandy98 Date: Sun, 9 Oct 2022 10:16:01 +0800 Subject: [PATCH] Retrieve SAS token (#2418) Signed-off-by: tjandy98 Signed-off-by: tjandy98 --- python/kserve/kserve/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/kserve/kserve/storage.py b/python/kserve/kserve/storage.py index 611515816fa..e1d51d79b00 100644 --- a/python/kserve/kserve/storage.py +++ b/python/kserve/kserve/storage.py @@ -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)