From 3cbd5e8415c5b569ffdf43adcc8aa846c8acf54a Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 25 Oct 2011 12:57:05 +0000 Subject: [PATCH] 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 --- xCAT-client/sbin/dumpxCATdb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/xCAT-client/sbin/dumpxCATdb b/xCAT-client/sbin/dumpxCATdb index 94f095037..cee67e827 100644 --- a/xCAT-client/sbin/dumpxCATdb +++ b/xCAT-client/sbin/dumpxCATdb @@ -24,7 +24,7 @@ use strict; dumpxCATdb -p - + 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) {