fix for bug 2832

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2013-01-15 06:46:41 +00:00
parent bc9575a42e
commit 530adb3db1

View File

@ -1883,7 +1883,11 @@ sub restorexcatdb
# restore it
my $cmd = "XCATBYPASS=1 XCATCFG=\"$xcatcfg\" restorexCATdb -p $::backupdir";
# secure passwords in verbose mode
my $tmpv = $::VERBOSE;
$::VERBOSE = 0;
xCAT::Utils->runcmd($cmd, 0);
$::VERBOSE = $tmpv;
if ($::RUNCMD_RC != 0)
{
xCAT::MsgUtils->message("E", " $cmd failed.");