Skip to content

BlobStorage.list_blobs broken #1

Description

@bmb

-req = Request("%s/$s?comp=list" % (self.get_base_url(), container_name)
+req = Request("%s/%s?comp=list" % (self.get_base_url(), container_name)

-containers = dom.findall("Blob")
+containers = dom.findall(".//Blob")

Same XPath changes needed in the list_containers method, I think. Note that findall with unqualified sub-element name may work as is with lxml (I don't know, haven't been able to test), but it doesn't with stdlib xml.etree.ElementTree, which I added like so:
-from lxml import etree
+try:

  • from lxml import etree
    +except ImportError:
  • from xml.etree import ElementTree as etree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions