From 7db647ebaaa59d698ffa5a7bc3a60d6036d37827 Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 22 Apr 2012 18:56:28 +0000 Subject: [PATCH] fix defect 3474497 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12295 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 3c6c2c373..be0b9b592 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -2183,7 +2183,10 @@ else { else { ($column,$value) = split("=",$temp,2); } - + unless (grep /$column/,@{$xCAT::Schema::tabspec{$table}->{cols}}) { + $callback->({error=>"$table.$column not a valid table.column description",errorcode=>[1]}); + return; + } $tableupdates{$table}{$column}=$value; }