diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-05-14 10:45:59 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-26 17:19:30 +0200 |
commit | 12d8fff3efef35aa61777f82133e627030bc0b27 (patch) | |
tree | 9ee62c732703f84cd565d55b68a809466fce1a45 /src/json.c | |
parent | 10c9559dfc46afd5710b2d49fb61fe5ccafc87d0 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |