]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist docs: remove addPool; clarify that getPool creates pools
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 9 Apr 2021 10:37:17 +0000 (12:37 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 9 Apr 2021 10:40:26 +0000 (12:40 +0200)
pdns/dnsdistdist/docs/reference/config.rst

index 77c93bcc9640692e415ca256aaa4726e210def97..2428de9306180da6f9cd382590b918e440837555 100644 (file)
@@ -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