diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 10:04:19 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 10:04:19 +0100 |
commit | 1ce56240323c21e3e3251dfd6173cb45ae959574 (patch) | |
tree | 971d63cfa56dfcb9b4cd34a13f18fb7b0427a635 /src | |
parent | 5ff92a826efad2acb4589755fb78fa4cdbda2614 (diff) |
rest: fix client/info maintenance field
Use computer.maintenance instead of computer.name.
Fixes: af47a082adb1 ("#1004 Add GET /client/info HTTP REST method")
Diffstat (limited to 'src')
-rw-r--r-- | src/rest.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1708,7 +1708,7 @@ static int og_cmd_get_client_info(json_t *element, json_integer(computer.hardware_id)); json_object_set_new(root, "server_id", json_integer(computer.server_id)); json_object_set_new(root, "netdriver", json_string(computer.netdriver)); - json_object_set_new(root, "maintenance", json_boolean(computer.name)); + json_object_set_new(root, "maintenance", json_boolean(computer.maintenance)); json_object_set_new(root, "netiface", json_string(computer.netiface)); json_object_set_new(root, "repo_id", json_integer(computer.repo_id)); json_object_set_new(root, "livedir", json_string(computer.livedir)); |