Skip to content

Commit

Permalink
correctly exclude self from get_prefix_blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevc committed Aug 5, 2024
1 parent 359c4d8 commit ddb3a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snakemake_storage_plugin_azure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def get_prefix_blobs(self) -> Iterable[BlobProperties]:
return (
item
for item in self.container_client().list_blobs(name_starts_with=prefix)
if item.name != prefix
if item.name != self.blob_path
)

def get_inventory_parent(self) -> Optional[str]:
Expand Down Expand Up @@ -398,7 +398,7 @@ def list_candidate_matches(self) -> Iterable[str]:
return (item.key for item in self.get_prefix_blobs(prefix=prefix))
else:
raise WorkflowError(
"S3 storage object {self.query} cannot be used to list matching "
"storage object {self.query} cannot be used to list matching "
"objects because bucket name contains a wildcard, which is not "
"supported."
)

0 comments on commit ddb3a5c

Please sign in to comment.