#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
Javier Sánchez Parra 2022-07-07 09:53:04 +02:00
parent 5cf2de704c
commit 2213d005ff
1 changed files with 1 additions and 3 deletions

View File

@ -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) {