From: Donald Sharp Date: Thu, 2 Feb 2023 21:28:27 +0000 (-0500) Subject: lib: Fix non-use of option X-Git-Tag: frr-8.4.3~12^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fc87d3d082faeb4fd9f478b57b6c83cb2614ca1e;p=matthieu%2Ffrr.git lib: Fix non-use of option Commit d7c6467ba2f55d1055babbb7fe82716ca3efdc7e added the ability to specify non pretty printing but unfortunately forgot to use the option variable to make the whole thing work. Signed-off-by: Donald Sharp --- diff --git a/lib/vty.c b/lib/vty.c index 9d8966064a..169e78081d 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -290,7 +290,7 @@ static int vty_json_helper(struct vty *vty, struct json_object *json, return CMD_SUCCESS; text = json_object_to_json_string_ext( - json, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE); + json, options); vty_out(vty, "%s\n", text); json_object_free(json);