]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: Fix "get map <map> <value>" CLI command
authorNenad Merdanovic <nmerdan@haproxy.com>
Sun, 12 Mar 2017 21:01:36 +0000 (22:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 Mar 2017 17:25:53 +0000 (18:25 +0100)
The said form of the CLI command didn't return anything since commit
ad8be61c7.

This fix needs to be backported to 1.7.

Signed-off-by: Nenad Merdanovic <nmerdan@haproxy.com>
src/map.c

index 90deb08da766378b70f67dfbdc8a6c93c41bfe2c..e8c6a2acbf05c36e9edca717ab60fc34a43d7472 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -906,7 +906,7 @@ static struct cli_kw_list cli_kws = {{ },{
        { { "add",   "map", NULL }, "add map        : add map entry", cli_parse_add_map, NULL },
        { { "clear", "map", NULL }, "clear map <id> : clear the content of this map", cli_parse_clear_map, NULL },
        { { "del",   "map", NULL }, "del map        : delete map entry", cli_parse_del_map, NULL },
-       { { "get",   "map", NULL }, "get map        : report the keys and values matching a sample for a map", cli_parse_get_map, NULL },
+       { { "get",   "map", NULL }, "get map        : report the keys and values matching a sample for a map", cli_parse_get_map, cli_io_handler_map_lookup, cli_release_mlook },
        { { "set",   "map", NULL }, "set map        : modify map entry", cli_parse_set_map, NULL },
        { { "show",  "map", NULL }, "show map [id]  : report available maps or dump a map's contents", cli_parse_show_map, NULL },
        { { NULL }, NULL, NULL, NULL }