summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-05-14 10:45:59 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-05-26 17:19:30 +0200
commit12d8fff3efef35aa61777f82133e627030bc0b27 (patch)
tree9ee62c732703f84cd565d55b68a809466fce1a45 /src/json.c
parent10c9559dfc46afd5710b2d49fb61fe5ccafc87d0 (diff)
#1037 Add disk type
Add ogServer support for parsing and storing in the DB disk type data from ogClient refresh response. See also commits with #1037 in ogClient and WebConsole repo.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index 7a849cb..a2b300f 100644
--- a/src/json.c
+++ b/src/json.c
@@ -120,6 +120,9 @@ int og_json_parse_partition(json_t *element, struct og_partition *part,
} else if (!strcmp(key, "disk")) {
err = og_json_parse_string(value, &part->disk);
flags |= OG_PARAM_PART_DISK;
+ } else if (!strcmp(key, "disk_type")) {
+ err = og_json_parse_string(value, &part->disk_type);
+ flags |= OG_PARAM_PART_DISK_TYPE;
} else if (!strcmp(key, "os")) {
err = og_json_parse_string(value, &part->os);
flags |= OG_PARAM_PART_OS;