rest: shell/output does not fail if command was never run

skip including client in the listing if command never run or it did not finished
yet.
master
OpenGnSys Support Team 2024-06-21 15:18:35 +02:00
parent 6a65b72114
commit 51dd1c4b1a
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ static int og_cmd_run_get(json_t *element, struct og_msg_params *params,
struct og_client *cli;
cli = og_client_find(params->ips_array[i]);
if (!cli)
if (!cli || !cli->shell.tstamp)
continue;
object = json_object();