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/21 19:31:10 UTC
svn commit: r1125748 -
/incubator/libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py
Author: tomaz
Date: Sat May 21 17:31:09 2011
New Revision: 1125748
URL: http://svn.apache.org/viewvc?rev=1125748&view=rev
Log:
Add a notice to the balancer_detach_member method.
Modified:
incubator/libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py
Modified: incubator/libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py?rev=1125748&r1=1125747&r2=1125748&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py (original)
+++ incubator/libcloud/trunk/libcloud/loadbalancer/drivers/rackspace.py Sat May 21 17:31:09 2011
@@ -137,6 +137,9 @@ class RackspaceLBDriver(Driver):
return self._to_members(resp.object)[0]
def balancer_detach_member(self, balancer, member):
+ # Loadbalancer always needs to have at least 1 member.
+ # Last member cannot be detached. You can only disable it or destroy the
+ # balancer.
uri = '/loadbalancers/%s/nodes/%s' % (balancer.id, member.id)
resp = self.connection.request(uri, method='DELETE')