fix error when new table added

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7458 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-09-15 12:42:45 +00:00
parent 2f51b80bc0
commit df6bfd2bcc

View File

@ -157,9 +157,9 @@ $progname = \$0;
if (xCAT::Utils->isMN()) {
# update schema for xCAT tables
my %int_tabspec;
%int_tabspec = xCAT::Table->getTableList;
foreach my $tablename (keys %int_tabspec) {
my @table;
push @table,xCAT::Table->getTableList();
foreach my $tablename (@table) {
my $tablelisttab=xCAT::Table->new($tablename,-create=>1);
my $rc= $tablelisttab->updateschema();
$tablelisttab->close;