mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 20:47:58 +00:00
lib: Fix non-use of option
Commitd7c6467ba2
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 <sharpd@nvidia.com> (cherry picked from commit00b0bb99ae
)
This commit is contained in:
parent
68c8001d41
commit
6df8da715b
@ -293,7 +293,7 @@ static int vty_json_helper(struct vty *vty, struct json_object *json,
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
|
|
||||||
text = json_object_to_json_string_ext(
|
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);
|
vty_out(vty, "%s\n", text);
|
||||||
json_object_free(json);
|
json_object_free(json);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user