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)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 Oct 2021 16:07:20 +0000 (18:07 +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)

(cherry picked from commit 620761f934fe24f3943ec2ff346d8ecd0e6a6576)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 7214dcfef69909f516f04f509421c4d915624c51)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

doc/configuration.txt

index 704f713..9f6fde1 100644 (file)
@@ -2683,8 +2683,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>]]