libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r916895 - /incubator/libcloud/trunk/libcloud/drivers/rackspace.py
Date Sat, 27 Feb 2010 02:46:13 GMT
Author: pquerna
Date: Sat Feb 27 02:46:13 2010
New Revision: 916895

URL: http://svn.apache.org/viewvc?rev=916895&view=rev
Log:
Fix setting node.state to the correct values 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=916895&r1=916894&r2=916895&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/rackspace.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/rackspace.py Sat Feb 27 02:46:13 2010
@@ -143,6 +143,8 @@
     type = Provider.RACKSPACE
     name = 'Rackspace'
 
+    features = {"create_node": ["generates_password"]}
+
     NODE_STATE_MAP = { 'BUILD': NodeState.PENDING,
                        'ACTIVE': NodeState.RUNNING,
                        'SUSPENDED': NodeState.TERMINATED,
@@ -271,7 +273,7 @@
         
         n = Node(id=el.get('id'),
                  name=el.get('name'),
-                 state=el.get('status'),
+                 state=self.NODE_STATE_MAP.get(el.get('status')),
                  public_ip=public_ip,
                  private_ip=private_ip,
                  driver=self.connection.driver,



Mime
View raw message