mirror of https://git.48k.eu/ogserver
#915 List all database images.
ogServer "GET /images" list images that exist simultaneously in database and in disk (/opt/opengnsys/images). With this patch, ogServer list all images in database, exist or not in disk. If an image exists in disk, it retrieves more information about them. This change is useful for environments where images are in different machines/repositories.master
parent
5cf2de704c
commit
2213d005ff
|
@ -2095,9 +2095,7 @@ static int og_cmd_images(char *buffer_reply)
|
|||
snprintf(image.name, sizeof(image.name), "%s",
|
||||
dbi_result_get_string(result, "nombreca"));
|
||||
|
||||
if (og_get_image_stats(image.name, &image.image_stats)) {
|
||||
continue;
|
||||
}
|
||||
og_get_image_stats(image.name, &image.image_stats);
|
||||
|
||||
image_json = og_json_image_alloc(&image);
|
||||
if (!image_json) {
|
||||
|
|
Loading…
Reference in New Issue