From 9bfdadeaac85fc3c52fd74568b5794de7129cbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Tue, 13 Oct 2026 23:22:01 -0300 Subject: [PATCH] fix(imgport): quote the image column of the litefile lookup imgimport looked up the litefile entries for all images with "image" = 'ALL'. MySQL takes a double-quoted name for a string, so the lookup found nothing, and imgimport added entries that an ALL entry already covered. The lookup now quotes the column the way the database needs. --- xCAT-server/lib/xcat/plugins/imgport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/imgport.pm b/xCAT-server/lib/xcat/plugins/imgport.pm index cf8b9cdd8..68b2856cc 100644 --- a/xCAT-server/lib/xcat/plugins/imgport.pm +++ b/xCAT-server/lib/xcat/plugins/imgport.pm @@ -2059,7 +2059,7 @@ sub make_files { } #get current litefile table entries - my @entries = $lftab->getAllAttribsWhere("\"image\" = 'ALL'", 'file', 'options'); + my @entries = $lftab->getAllAttribsWhere(xCAT::Table::delimitcol('image') . " = 'ALL'", 'file', 'options'); #get the entries for image open(FILE, "$fn") or die "Could not open $fn.";