MINOR: map/acl/dumpstats: remove the "Done." message
By convention, the HAProxy CLI doesn't return message if the opration
is sucessfully done. The MAP and ACL returns the "Done." message, an
its noise the output during big MAP or ACL injection.
(cherry picked from commit 07e78c50b524a25a8fa67f107429fc68d78e14f5)
[wt: this is not a bug but better clean that as it annoys users, so
it's better to backport it to stable]
diff --git a/src/dumpstats.c b/src/dumpstats.c
index 4466639..53cca35 100644
--- a/src/dumpstats.c
+++ b/src/dumpstats.c
@@ -1295,8 +1295,7 @@
pat_ref_prune(appctx->ctx.map.ref);
/* return response */
- appctx->ctx.cli.msg = "Done.\n";
- appctx->st0 = STAT_CLI_PRINT;
+ appctx->st0 = STAT_CLI_PROMPT;
return 1;
}
else {
@@ -1788,8 +1787,7 @@
}
/* The set is done, send message. */
- appctx->ctx.cli.msg = "Done.\n";
- appctx->st0 = STAT_CLI_PRINT;
+ appctx->st0 = STAT_CLI_PROMPT;
return 1;
}
#ifdef USE_OPENSSL
@@ -2138,8 +2136,7 @@
}
/* The deletion is done, send message. */
- appctx->ctx.cli.msg = "Done.\n";
- appctx->st0 = STAT_CLI_PRINT;
+ appctx->st0 = STAT_CLI_PROMPT;
return 1;
}
else { /* unknown "del" parameter */
@@ -2215,8 +2212,7 @@
}
/* The add is done, send message. */
- appctx->ctx.cli.msg = "Done.\n";
- appctx->st0 = STAT_CLI_PRINT;
+ appctx->st0 = STAT_CLI_PROMPT;
return 1;
}
else { /* unknown "del" parameter */