summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-30 10:04:19 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-30 10:04:19 +0100
commit1ce56240323c21e3e3251dfd6173cb45ae959574 (patch)
tree971d63cfa56dfcb9b4cd34a13f18fb7b0427a635 /src
parent5ff92a826efad2acb4589755fb78fa4cdbda2614 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest.c b/src/rest.c
index 8bbe063..f177e4c 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -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));