defect 3555500, supress the warning when run xcat command in XCATBYPASS mode. It only happens for sles11.sp2

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-08-09 08:54:22 +00:00
parent 59e6c5f418
commit c9c00ec7fd

View File

@ -1276,7 +1276,7 @@ sub initDB
# switch from bind.pm to ddns.pm
# give a warning message for the first time
my $cmds = "XCATBYPASS=Y $::XCATROOT/sbin/tabdump site|grep dnshandler";
my $cmds = "XCATBYPASS=Y $::XCATROOT/sbin/tabdump site 2>/dev/null |grep dnshandler";
$outref = xCAT::Utils->runcmd("$cmds", -1);
if ($::RUNCMD_RC != 0)
{