summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 15:18:35 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 15:23:27 +0200
commit51dd1c4b1a900b10b9f57a6544edc21fd2fde8d7 (patch)
tree3739ab5b20e1bce9c58713ad165fd3f5e5ffc09d /src
parent6a65b72114809448330673c932d420739db55782 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/rest.c2
1 files changed, 1 insertions, 1 deletions
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();