diff options
author | Donald Sharp <sharpd@nvidia.com> | 2023-02-02 22:28:27 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-02-16 14:14:22 +0100 |
commit | 00b0bb99ae9fb6cd003d3e38c4760d1fd59ab545 (patch) | |
tree | e65eed49ab27f8e30d5b265984ccd74447d3fe89 /lib/vty.c | |
parent | Merge pull request #12794 from anlancs/fix/doc-pid-path (diff) | |
download | frr-00b0bb99ae9fb6cd003d3e38c4760d1fd59ab545.tar.xz frr-00b0bb99ae9fb6cd003d3e38c4760d1fd59ab545.zip |
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 <sharpd@nvidia.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r-- | lib/vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |