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/branches/2.7@13471 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-08-09 08:56:01 +00:00
parent 5bc4867f00
commit 7cd9df23fb

View File

@ -1283,7 +1283,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)
{