2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-21 23:28:19 +00:00

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.
This commit is contained in:
Vinícius Ferrão
2026-10-13 23:22:01 -03:00
parent be9c063981
commit 9bfdadeaac
+1 -1
View File
@@ -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.";