Skip to content

Commit

Permalink
Merge pull request #18110 from jmchilton/azure_fix_0
Browse files Browse the repository at this point in the history
Fairly critical fix for #18087
  • Loading branch information
jmchilton authored May 9, 2024
2 parents b6ba14c + b88b79d commit 0765870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/objectstore/azure_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def _delete(self, obj, entire_dir=False, **kwargs):
# but requires iterating through each individual blob in Azure and deleing it.
if entire_dir and extra_dir:
shutil.rmtree(self._get_cache_path(rel_path), ignore_errors=True)
blobs = self.service.get_container_client(self.container_name).list_blobs()
blobs = self.service.get_container_client(self.container_name).list_blobs(name_starts_with=rel_path)
for blob in blobs:
log.debug("Deleting from Azure: %s", blob)
self._blob_client(blob.name).delete_blob()
Expand Down

0 comments on commit 0765870

Please sign in to comment.