From 51dd1c4b1a900b10b9f57a6544edc21fd2fde8d7 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 21 Jun 2024 15:18:35 +0200 Subject: 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. --- src/rest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rest.c') diff --git a/src/rest.c b/src/rest.c index 082a4e5..59b165c 100644 --- a/src/rest.c +++ b/src/rest.c @@ -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(); -- cgit v1.2.3-18-g5258