Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
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'