From: Peter van Dijk Date: Fri, 9 Apr 2021 10:37:17 +0000 (+0200) Subject: dnsdist docs: remove addPool; clarify that getPool creates pools X-Git-Tag: dnsdist-1.6.0-rc1~14^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9814bdc8822300837af8ee8cce6f84e427b6d867;p=thirdparty%2Fpdns.git dnsdist docs: remove addPool; clarify that getPool creates pools --- diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index 77c93bcc96..2428de9306 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -669,17 +669,11 @@ Pools ----- :class:`Server`\ s can be part of any number of pools. -Pools are automatically created when a server is added to a pool (with :func:`newServer`), or can be manually created with :func:`addPool`. - -.. function:: addPool(name) -> ServerPool - - Returns a :class:`ServerPool`. - - :param string name: The name of the pool to create +Pools are automatically created when a server is added to a pool (with :func:`newServer`), or can be manually created with :func:`getPool`. .. function:: getPool(name) -> ServerPool - Returns a :class:`ServerPool` or nil. + Returns a :class:`ServerPool`. If the pool does not exist yet, it is created. :param string name: The name of the pool