diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-06-21 15:18:35 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-06-21 15:23:27 +0200 |
commit | 51dd1c4b1a900b10b9f57a6544edc21fd2fde8d7 (patch) | |
tree | 3739ab5b20e1bce9c58713ad165fd3f5e5ffc09d /src/rest.c | |
parent | 6a65b72114809448330673c932d420739db55782 (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/rest.c')
-rw-r--r-- | src/rest.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |