libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1103053 - /incubator/libcloud/trunk/libcloud/loadbalancer/base.py
Date Sat, 14 May 2011 11:31:04 GMT
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):
       """



Mime
View raw message