diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-02-02 16:28:27 -0500 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-02-16 22:16:02 +0200 |
| commit | fc87d3d082faeb4fd9f478b57b6c83cb2614ca1e (patch) | |
| tree | 3fc0b197a081d2beebd453b71c4f288fb480b4ad | |
| parent | 8cc8e056d63949769994bae0b745198f77a8412e (diff) | |
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>
| -rw-r--r-- | lib/vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
