From 84cd853660a24fbb518c81e46d0cd8b652e258d2 Mon Sep 17 00:00:00 2001 From: jjhua Date: Mon, 17 Jan 2011 06:12:36 +0000 Subject: [PATCH] fixed bug3156391 , getting the attributes from vpd table which the serial and mtms is specified support Postgresql or DB2 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8677 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPflash.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/FSPflash.pm b/perl-xCAT/xCAT/FSPflash.pm index 3ea967194..675c35cad 100644 --- a/perl-xCAT/xCAT/FSPflash.pm +++ b/perl-xCAT/xCAT/FSPflash.pm @@ -253,7 +253,7 @@ sub get_related_fsp_bpa { #Get node ################################# print "in get_related_fsp_bpa(), serial = $serial, mtm= $mtm\n"; - my @ent = $tab->getAllAttribsWhere("serial=\"$serial\" and mtm=\"$mtm\"", 'node'); + my @ent = $tab->getAllAttribsWhere("\"serial\" like '%".$serial."%' and \"mtm\" like '%".$mtm."%'", 'node'); if (@ent < 0) { $msg = "failed to get the FSPs or BPAs whose mtm is $mtm, serial is $serial!"; return ("", $msg);