]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: add missing agent commands for set server
authorWilliam Dauchy <wdauchy@gmail.com>
Mon, 15 Feb 2021 16:22:16 +0000 (17:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Feb 2021 13:58:43 +0000 (14:58 +0100)
we previously forgot to add `agent-*` commands.
Take this opportunity to rewrite the help string in a simpler way for
readability (mainly removing simple quotes)

Signed-off-by: William Dauchy <wdauchy@gmail.com>
src/server.c

index 19bf529d44f1b37ee4390bc864c8ba678cd18b6c..7a058e3fe77da8fc4bc59110a8f2e3f70de02dcf 100644 (file)
@@ -4619,9 +4619,10 @@ static int cli_parse_set_server(char **args, char *payload, struct appctx *appct
 #endif
        } else {
                cli_err(appctx,
-                       "'set server <srv>' only supports 'agent', 'health', "
-                       "'state', 'weight', 'addr', 'fqdn', 'check-addr', "
-                       "'check-port' and 'ssl'.\n");
+                       "usage: set server <backend>/<server> "
+                       "addr | agent | agent-addr | agent-port | agent-send | "
+                       "check-addr | check-port | fqdn | health | ssl | "
+                       "state | weight\n");
        }
  out_unlock:
        HA_SPIN_UNLOCK(SERVER_LOCK, &sv->lock);