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/01/05 06:14:43 UTC

svn commit: r895902 - /incubator/libcloud/trunk/libcloud/drivers/rackspace.py

Author: pquerna
Date: Tue Jan  5 05:14:43 2010
New Revision: 895902

URL: http://svn.apache.org/viewvc?rev=895902&view=rev
Log:
Add hard coded list_locations for rackspace

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

Modified: incubator/libcloud/trunk/libcloud/drivers/rackspace.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/rackspace.py?rev=895902&r1=895901&r2=895902&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/rackspace.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/rackspace.py Tue Jan  5 05:14:43 2010
@@ -16,7 +16,7 @@
 Rackspace driver
 """
 from libcloud.types import NodeState, InvalidCredsException, Provider
-from libcloud.base import ConnectionUserAndKey, Response, NodeDriver, Node, NodeSize, NodeImage
+from libcloud.base import ConnectionUserAndKey, Response, NodeDriver, Node, NodeSize, NodeImage, NodeLocation
 from libcloud.interface import INodeDriver
 
 from zope.interface import implements
@@ -153,7 +153,7 @@
         return self.to_images(self.connection.request('/images/detail').object)
 
     def list_locations(self):
-        return [NodeLocation(0, "Rackspace DFW1", 'us', self.driver)]
+        return [NodeLocation(0, "Rackspace DFW1", 'us', self)]
 
     def create_node(self, **kwargs):
         """Create a new rackspace node