]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: peers: fix doc "enable" statement on "peers" sections
authorEmeric Brun <ebrun@haproxy.com>
Wed, 29 Sep 2021 08:29:52 +0000 (10:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Sep 2021 13:06:12 +0000 (15:06 +0200)
Checking in code the right keyword is "enabled" and not "enable".

In addition the comment was also completed:

This could appear useless because the "defaults" sections not
yet apply on "peers" sections, but it could be the case in the future.
This statement can currently cancel a previous "disabled" keyword in
the same section.

This patch should be backported in all supported branches (keyword
is present since 1.5)

doc/configuration.txt

index 26250073f300c413a8a8aa2e3af3460c5698e07b..a7e8cdd80f1327b2dcb18f987fc53f6e90afa34d 100644 (file)
@@ -3027,8 +3027,9 @@ default-server [param*]
 
   See also: "server" and section 5 about server options
 
-enable
-  This re-enables a disabled peers section which was previously disabled.
+enabled
+  This re-enables a peers section which was previously disabled via the
+  "disabled" keyword.
 
 log <address> [len <length>] [format <format>] [sample <ranges>:<sample_size>]
     <facility> [<level> [<minlevel>]]