libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r1049307 - /incubator/libcloud/site/getting-started.html
Date Tue, 14 Dec 2010 22:15:45 GMT
Author: jerry
Date: Tue Dec 14 22:15:45 2010
New Revision: 1049307

URL: http://svn.apache.org/viewvc?rev=1049307&view=rev
Log:
Site: Syntax error

Modified:
    incubator/libcloud/site/getting-started.html

Modified: incubator/libcloud/site/getting-started.html
URL: http://svn.apache.org/viewvc/incubator/libcloud/site/getting-started.html?rev=1049307&r1=1049306&r2=1049307&view=diff
==============================================================================
--- incubator/libcloud/site/getting-started.html (original)
+++ incubator/libcloud/site/getting-started.html Tue Dec 14 22:15:45 2010
@@ -72,7 +72,7 @@ sizes = conn.list_sizes()
 # [<NodeSize: id=1, name=256 server, ram=256 ... driver=Rackspace ...>, ...]
 
 # create node with first image and first size
-node = conn.create_node(name='test', image=images[0], size=size[0])
+node = conn.create_node(name='test', image=images[0], size=sizes[0])
 # &lt;Node: uuid=..., name=test, state=3, public_ip=['1.1.1.1'], provider=Rackspace ...&gt;</code>
 
       <h2>Example: List Nodes Across Multiple Providers</h2>
@@ -132,7 +132,7 @@ images = conn.list_images()
 sizes = conn.list_sizes()
 
 # deploy_node takes the same base keyword arguments as create_node.
-node = conn.deploy_node(name='test', image=images[0], size=size[0], deploy=msd)
+node = conn.deploy_node(name='test', image=images[0], size=sizes[0], deploy=msd)
 # &lt;Node: uuid=..., name=test, state=3, public_ip=['1.1.1.1'], provider=Rackspace ...&gt;
 # the node is now booted, with your ssh key and puppet installed.
 </code>



Mime
View raw message