]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cli: "agent" was missing from the "enable"/"disable" help message
authorWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 09:41:45 +0000 (11:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 13:42:49 +0000 (15:42 +0200)
Commit 671b6f0 ("MEDIUM: Add enable and disable agent unix socket commands")
forgot to update the relevant help messages. This was done in 1.5-dev20, no
backport is needed.

src/dumpstats.c

index 02bff56b73466191edc82aab3f0fea221903d181..63a615a0c7cbf6b474da6283cca64aa8bc0652f3 100644 (file)
@@ -1828,7 +1828,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
                        return 1;
                }
                else { /* unknown "enable" parameter */
-                       appctx->ctx.cli.msg = "'enable' only supports 'frontend' and 'server'.\n";
+                       appctx->ctx.cli.msg = "'enable' only supports 'agent', 'frontend' and 'server'.\n";
                        appctx->st0 = STAT_CLI_PRINT;
                        return 1;
                }
@@ -1881,7 +1881,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
                        return 1;
                }
                else { /* unknown "disable" parameter */
-                       appctx->ctx.cli.msg = "'disable' only supports 'frontend' and 'server'.\n";
+                       appctx->ctx.cli.msg = "'disable' only supports 'agent', 'frontend' and 'server'.\n";
                        appctx->st0 = STAT_CLI_PRINT;
                        return 1;
                }