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 2013/11/17 21:05:37 UTC
[11/17] git commit: For consistency,
move private methods on the Driver class to the end.
For consistency, move private methods on the Driver class to the end.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/cc04b13c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/cc04b13c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/cc04b13c
Branch: refs/heads/trunk
Commit: cc04b13c161380ebdd109223e53a719d2b727e32
Parents: 81d5fd6
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Nov 17 20:34:35 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Nov 17 20:34:48 2013 +0100
----------------------------------------------------------------------
libcloud/loadbalancer/base.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/cc04b13c/libcloud/loadbalancer/base.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/base.py b/libcloud/loadbalancer/base.py
index 1508121..b785af0 100644
--- a/libcloud/loadbalancer/base.py
+++ b/libcloud/loadbalancer/base.py
@@ -307,6 +307,14 @@ class Driver(BaseDriver):
raise NotImplementedError(
'balancer_list_members not implemented for this driver')
+ def list_supported_algorithms(self):
+ """
+ Return algorithms supported by this driver.
+
+ :rtype: ``list`` of ``str``
+ """
+ return list(self._ALGORITHM_TO_VALUE_MAP.keys())
+
def _value_to_algorithm(self, value):
"""
Return :class`Algorithm` based on the value.
@@ -336,11 +344,3 @@ class Driver(BaseDriver):
except KeyError:
raise LibcloudError(value='Invalid algorithm: %s' % (algorithm),
driver=self)
-
- def list_supported_algorithms(self):
- """
- Return algorithms supported by this driver.
-
- :rtype: ``list`` of ``str``
- """
- return list(self._ALGORITHM_TO_VALUE_MAP.keys())