]> git.kaiwu.me - haproxy.git/commitdiff
BUG/MINOR: cli: update wait help usage
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Sep 2026 08:48:13 +0000 (10:48 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Oct 2026 07:34:33 +0000 (09:34 +0200)
CLI command wait has a built-in help message which notably list all
supported condition. This patch complete it to add "be-removable" as a
valid entry, available since the implementation of the removal of
backends at runtime.

This must be backported up to 3.4.

src/cli.c

index cb527dcb264f851dadde5a208bc2a48dc4b160b4..5bdc5a260988ed3ab4a553e12d155e88ec924d6c 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -2499,6 +2499,7 @@ static int cli_parse_wait(char **args, char *payload, struct appctx *appctx, voi
                        "    duration. Supported conditions are:\n"
                        "    - <none> : by default, just sleep for the specified duration.\n"
                        "    - srv-removable <px>/<sv> : wait for this server to become removable.\n"
+                       "    - be-removable <px> : wait for this backend to become removable.\n"
                        "";
 
                if (strcmp(args[2], "-h") == 0)