Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-202

KeyError on conn.list_images in CloudStack compute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.11.0
    • Compute

    Description

      When conn.list_images() is called on a CloudStack connection, a KeyError is thrown when parsing the response due to a lack of any template information in the response.

      For example:

      >>> conn = Driver(key=CS_API_KEY, secret=CS_SECRET_KEY, ...)
      >>> conn.list_images()
      Traceback (most recent call last):
      File "cloudstack.py", line 24, in <module>
      images = conn.list_images()
      File "/usr/local/lib/python2.6/dist-packages/libcloud/compute/drivers/cloudstack.py", line 127, in list_images
      for img in imgs['template']:
      KeyError: 'template'

      Attachments

        Activity

          People

            Unassigned Unassigned
            gabriel.reid Gabriel Reid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: