diff options
Diffstat (limited to 'src/rest.c')
-rw-r--r-- | src/rest.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -797,13 +797,14 @@ static int og_cmd_run_get(json_t *element, struct og_msg_params *params, } json_object_set_new(object, "addr", addr); - output = json_string(cli->shell_output); + output = json_string(cli->shell.output); if (!output) { json_decref(object); json_decref(array); return -1; } json_object_set_new(object, "output", output); + json_object_set_new(object, "retcode", json_integer(cli->shell.retcode)); json_array_append_new(array, object); } |