Skip to content

Commit

Permalink
Fixes Azure blob download as class is no longer hashable (kubeflow#1971)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongcheng Lao <Zhongcheng.Lao@microsoft.com>
  • Loading branch information
laozc authored Jan 9, 2022
1 parent c1840e1 commit 80b7445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/kserve/kserve/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _download_blob(uri, out_dir: str): # pylint: disable=too-many-locals
else:
blobs += container_client.list_blobs(name_starts_with=item.name,
include=['snapshots'])
for blob in set(blobs):
for blob in blobs:
dest_path = os.path.join(out_dir, blob.name.replace(prefix, "", 1).lstrip("/"))
Path(os.path.dirname(dest_path)).mkdir(parents=True, exist_ok=True)
logging.info("Downloading: %s to %s", blob.name, dest_path)
Expand Down

0 comments on commit 80b7445

Please sign in to comment.