From 9814bdc8822300837af8ee8cce6f84e427b6d867 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 9 Apr 2021 12:37:17 +0200 Subject: [PATCH] dnsdist docs: remove addPool; clarify that getPool creates pools --- pdns/dnsdistdist/docs/reference/config.rst | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 -- 2.47.2