GitHub user wido opened a pull request:

    https://github.com/apache/libcloud/pull/617

    cloudstack: If no volumes are found return an empty list

    Otherwise we got this:
    
    <pre>
    Traceback (most recent call last):
      File "auroracompute.py", line 16, in <module>
        print(conn.list_volumes())
      File "/home/wido/repos/libcloud/libcloud/compute/drivers/cloudstack.py", 
line 2172, in list_volumes
        for vol in volumes['volume']:
    KeyError: 'volume'
    </pre>
    
    Simply return a empty list if no volume is found

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wido/libcloud cloudstack-list-volumes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/617.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #617
    
----
commit c9bdb5af3ee9f12b4a8d42a0ed115bd3d98cf9a0
Author: Wido den Hollander <w...@pcextreme.nl>
Date:   2015-10-28T14:03:26Z

    cloudstack: If no volumes are found return an empty list

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to