libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1103612 - /incubator/libcloud/trunk/example_loadbalancer.py
Date Mon, 16 May 2011 05:43:25 GMT
Author: tomaz
Date: Mon May 16 05:43:25 2011
New Revision: 1103612

URL: http://svn.apache.org/viewvc?rev=1103612&view=rev
Log:
Update loadbalancer example.

Modified:
    incubator/libcloud/trunk/example_loadbalancer.py

Modified: incubator/libcloud/trunk/example_loadbalancer.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/example_loadbalancer.py?rev=1103612&r1=1103611&r2=1103612&view=diff
==============================================================================
--- incubator/libcloud/trunk/example_loadbalancer.py (original)
+++ incubator/libcloud/trunk/example_loadbalancer.py Mon May 16 05:43:25 2011
@@ -55,11 +55,11 @@ def main():
         time.sleep(30)
 
     # fetch list of nodes
-    nodes = balancer.list_nodes()
+    nodes = balancer.list_members()
     print nodes
 
     # remove first node
-    balancer.detach_node(nodes[0])
+    balancer.detach_member(nodes[0])
 
     # and add another one: 10.0.0.10:1000
     print balancer.attach_member(Member(None, ip='10.0.0.10', port='1000'))



Mime
View raw message