mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18: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:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user