You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/05/16 07:43:25 UTC
svn commit: r1103612 - /incubator/libcloud/trunk/example_loadbalancer.py
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'))