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/04/14 22:18:01 UTC

svn commit: r934172 - /incubator/libcloud/trunk/libcloud/drivers/slicehost.py

Author: pquerna
Date: Wed Apr 14 20:18:01 2010
New Revision: 934172

URL: http://svn.apache.org/viewvc?rev=934172&view=rev
Log:
expose more attributes in the slicehost driver

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

Modified: incubator/libcloud/trunk/libcloud/drivers/slicehost.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/slicehost.py?rev=934172&r1=934171&r2=934172&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/slicehost.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/slicehost.py Wed Apr 14 20:18:01 2010
@@ -174,15 +174,15 @@ class SlicehostNodeDriver(NodeDriver):
         except:
             state = NodeState.UNKNOWN
 
+        # for consistency with other drivers, we put this in two places.
+        node_attrs['password'] = node_attrs['root-password']
         n = Node(id=element.findtext('id'),
                  name=element.findtext('name'),
                  state=state,
                  public_ip=[public_ip],
                  private_ip=[private_ip],
                  driver=self.connection.driver,
-                 extra={
-                     'password': element.findtext('root-password'),
-                 })
+                 extra=node_attrs)
         return n
 
     def _to_sizes(self, object):