summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rest.c b/src/rest.c
index d8bb773..e61add0 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -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);
}