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 01:12:21 UTC

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

Author: pquerna
Date: Tue Jan  5 00:12:21 2010
New Revision: 895834

URL: http://svn.apache.org/viewvc?rev=895834&view=rev
Log:
Improve rackspace driver documentation

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=895834&r1=895833&r2=895834&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/rackspace.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/rackspace.py Tue Jan  5 00:12:21 2010
@@ -117,13 +117,14 @@
         
 
 class RackspaceNodeDriver(NodeDriver):
-    """Rackspace node driver.
+    """
+    Rackspace node driver.
     
-        Extra node attributes:
-            password: root password, available after create.
-            hostId: represents the host your cloud server runs on
-            imageId: id of image
-            flavorId: id of flavor
+    Extra node attributes:
+        - password: root password, available after create.
+        - hostId: represents the host your cloud server runs on
+        - imageId: id of image
+        - flavorId: id of flavor
     """
     connectionCls = RackspaceConnection
     type = Provider.RACKSPACE
@@ -149,6 +150,15 @@
         return self.to_images(self.connection.request('/images/detail').object)
 
     def create_node(self, **kwargs):
+        """Create a new rackspace node
+
+        See L{NodeDriver.create_node} for more keyword args.
+        @keyword    metadata: Key/Value metadata to associate with a node
+        @type       metadata: C{dict}
+
+        @keyword    file:   File Path => File contents to create on the node
+        @type       file:   C{dict}
+        """
         name = kwargs['name']
         image = kwargs['image']
         size = kwargs['size']