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 13:31:04 UTC
svn commit: r1103053 -
/incubator/libcloud/trunk/libcloud/loadbalancer/base.py
Author: tomaz
Date: Sat May 14 11:31:04 2011
New Revision: 1103053
URL: http://svn.apache.org/viewvc?rev=1103053&view=rev
Log:
Rename the balancer_detail to get_balancer and change the method signature and
return value.
Modified:
incubator/libcloud/trunk/libcloud/loadbalancer/base.py
Modified: incubator/libcloud/trunk/libcloud/loadbalancer/base.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/loadbalancer/base.py?rev=1103053&r1=1103052&r2=1103053&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/loadbalancer/base.py (original)
+++ incubator/libcloud/trunk/libcloud/loadbalancer/base.py Sat May 14 11:31:04 2011
@@ -136,22 +136,18 @@ class LBDriver(object):
raise NotImplementedError, \
'destroy_balancer not implemented for this driver'
- def balancer_detail(self, **kwargs):
+ def get_balancer(self, balancer_id):
"""
- Returns a detailed info about load balancer given by
- existing L{LB} object or its id
+ Return a C{LB} object.
- @keyword balancer: L{LB} object you already fetched using list method for example
- @type balancer: L{LB}
@keyword balancer_id: id of a load balancer you want to fetch
@type balancer_id: C{str}
- @return: L{LB}
-
+ @return: C{LB}
"""
raise NotImplementedError, \
- 'balancer_detail not implemented for this driver'
+ 'get_balancer not implemented for this driver'
def balancer_attach_compute_node(self, balancer, node):
"""