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/14 12:22:20 UTC
svn commit: r1103005 - /incubator/libcloud/trunk/example_lb.py
Author: tomaz
Date: Sat May 14 10:22:20 2011
New Revision: 1103005
URL: http://svn.apache.org/viewvc?rev=1103005&view=rev
Log:
LBNode -> LBMember in example_lb.py
Modified:
incubator/libcloud/trunk/example_lb.py
Modified: incubator/libcloud/trunk/example_lb.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/example_lb.py?rev=1103005&r1=1103004&r2=1103005&view=diff
==============================================================================
--- incubator/libcloud/trunk/example_lb.py (original)
+++ incubator/libcloud/trunk/example_lb.py Sat May 14 10:22:20 2011
@@ -3,7 +3,7 @@
import os
import time
-from libcloud.loadbalancer.base import LB, LBNode
+from libcloud.loadbalancer.base import LB, LBMember
from libcloud.loadbalancer.types import Provider, LBState
from libcloud.loadbalancer.providers import get_driver
@@ -20,8 +20,8 @@ def main():
new_balancer_name = 'testlb' + os.urandom(4).encode('hex')
new_balancer = driver.create_balancer(name=new_balancer_name,
port=80,
- nodes=(LBNode(None, '192.168.86.1', 80),
- LBNode(None, '192.168.86.2', 8080))
+ nodes=(LBMember(None, '192.168.86.1', 80),
+ LBMember(None, '192.168.86.2', 8080))
)
print new_balancer