mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-04 00:41:41 +01:00
MINOR: cli: remove information about acl or map owner.
The string <display> contain all the owners of the displayed pattern. The message " - also used by an ACL/map" is useless.
This commit is contained in:
parent
65ce6133ba
commit
f7e04e9c2f
@ -4885,20 +4885,10 @@ static int stats_pats_list(struct stream_interface *si)
|
||||
/* Build messages. If the reference is used by another category than
|
||||
* the listed categorie, display the information in the massage.
|
||||
*/
|
||||
chunk_appendf(&trash, "%d (%s) %s", appctx->ctx.map.ref->unique_id,
|
||||
chunk_appendf(&trash, "%d (%s) %s\n", appctx->ctx.map.ref->unique_id,
|
||||
appctx->ctx.map.ref->reference ? appctx->ctx.map.ref->reference : "",
|
||||
appctx->ctx.map.ref->display);
|
||||
|
||||
if (appctx->ctx.map.display_flags & PAT_REF_MAP) {
|
||||
if (appctx->ctx.map.ref->flags & PAT_REF_ACL)
|
||||
chunk_appendf(&trash, " - also used by an ACL");
|
||||
}
|
||||
else {
|
||||
if (appctx->ctx.map.ref->flags & PAT_REF_MAP)
|
||||
chunk_appendf(&trash, " - also used by a map");
|
||||
}
|
||||
chunk_appendf(&trash, "\n");
|
||||
|
||||
if (bi_putchk(si->ib, &trash) == -1) {
|
||||
/* let's try again later from this session. We add ourselves into
|
||||
* this session's users so that it can remove us upon termination.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user