You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/02/10 23:57:40 UTC

svn commit: r908723 - /incubator/libcloud/trunk/libcloud/drivers/voxel.py

Author: pquerna
Date: Wed Feb 10 22:57:38 2010
New Revision: 908723

URL: http://svn.apache.org/viewvc?rev=908723&view=rev
Log:
Update API to include location param

Modified:
    incubator/libcloud/trunk/libcloud/drivers/voxel.py

Modified: incubator/libcloud/trunk/libcloud/drivers/voxel.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/voxel.py?rev=908723&r1=908722&r2=908723&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/voxel.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/voxel.py Wed Feb 10 22:57:38 2010
@@ -112,11 +112,11 @@
        result = self.connection.request('', params=params).object        
        return self._to_nodes(result)
 
-   def list_sizes(self):
+   def list_sizes(self, location=None):
        return [ NodeSize(driver=self.connection.driver, **i) 
                    for i in VOXEL_INSTANCE_TYPES.values() ]
 
-   def list_images(self):
+   def list_images(self, location=None):
        params = {"method": "voxel.images.list"}
        result = self.connection.request('', params=params).object
        return self._to_images(result)