From e22270cd29ffe96158cd87923f4ad646f0f977f0 Mon Sep 17 00:00:00 2001 From: Tyler Hobbs Date: Wed, 14 May 2014 12:28:28 -0500 Subject: [PATCH] Add WhiteListRRPolicy to API docs --- cassandra/policies.py | 3 ++- docs/api/cassandra/policies.rst | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cassandra/policies.py b/cassandra/policies.py index f0cbe024..58ea5021 100644 --- a/cassandra/policies.py +++ b/cassandra/policies.py @@ -394,7 +394,8 @@ class WhiteListRoundRobinPolicy(RoundRobinPolicy): """ def __init__(self, hosts): """ - :param hosts: List of hosts + The `hosts` parameter should be a sequence of hosts to permit + connections to. """ self._allowed_hosts = hosts RoundRobinPolicy.__init__(self) diff --git a/docs/api/cassandra/policies.rst b/docs/api/cassandra/policies.rst index 833436a9..44346c4b 100644 --- a/docs/api/cassandra/policies.rst +++ b/docs/api/cassandra/policies.rst @@ -18,6 +18,9 @@ Load Balancing .. autoclass:: DCAwareRoundRobinPolicy :members: +.. autoclass:: WhiteListRoundRobinPolicy + :members: + .. autoclass:: TokenAwarePolicy :members: