add support for Env variable to determine skiptables

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-10-25 12:57:05 +00:00
parent 50ff23fbdb
commit 3cbd5e8415

View File

@ -24,7 +24,7 @@ use strict;
dumpxCATdb -p <directory to place database dump>
See man page.
=cut
@ -40,11 +40,17 @@ if ($::RUNCMD_RC != 0)
"Error running tabdump to get list of tables");
exit 1;
}
# read tables to skip during dump from site.skiptables attribute
my @output2=xCAT::Utils->get_site_attribute('skiptables');
# Determine which table to skip
my @output2;
if ($ENV{'XCAT_SKIPTABLES'}) {
@output2=$ENV{'XCAT_SKIPTABLES'};
} else {
# read tables to skip from site.skiptables attribute
@output2=xCAT::Utils->get_site_attribute('skiptables');
}
my @skiptbls;
if (@output2) {
@skiptbls = split (/\,/,$output2[0]);
@skiptbls = split (/\,/,$output2[0]);
}
foreach my $table (@output)
{