From 2213d005ff58c6c495ac93b564b06b79d4d5a16d Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 7 Jul 2022 09:53:04 +0200 Subject: #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. --- src/rest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rest.c b/src/rest.c index eb1a7b2..1f35174 100644 --- a/src/rest.c +++ b/src/rest.c @@ -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) { -- cgit v1.2.3-18-g5258