libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r908723 - /incubator/libcloud/trunk/libcloud/drivers/voxel.py
Date Wed, 10 Feb 2010 22:57:40 GMT
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)



Mime
View raw message