lib: Fix non-use of option

Commit d7c6467ba2 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>
This commit is contained in:
Donald Sharp 2023-02-02 16:28:27 -05:00
parent bf9bc2e5f2
commit 00b0bb99ae

View file

@ -293,7 +293,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);