Skip to content

Azure Storage Blob: delete_blobs returns "tuple index out of range" when list_blobs are zero #12779

@dr-dolittle

Description

@dr-dolittle
  • Package Name: azure-storage-blob
  • Package Version: 12.3.2
  • Operating System: Windows
  • Python Version: 3.8.1

I retrieve blobs matching a certain pattern and then delete them. Currently it is implemented with a (costly) workaround as you can see in the following issue: #12778

When passing blob_paged directly to delete_blobs it works as long as blob_paged is not zero, but if it is zero (i.e. no blob matches the prefix) it returns the exception tuple index out of range.

Can you please adjust the behavior that delete_blobs can handle blob_paged even if it is zero?

Thanks

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions