remove unnecessary msgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9690 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
43f458dcf9
commit
6826e24b8a
@ -202,6 +202,10 @@ sub is_me
|
||||
my $nameIP = xCAT::NetworkUtils->getipaddr($name);
|
||||
chomp $nameIP;
|
||||
|
||||
# shut off verbose - just for this routine
|
||||
my $verb = $::VERBOSE;
|
||||
$::VERBOSE = 0;
|
||||
|
||||
# split into octets
|
||||
#my ($b1, $b2, $b3, $b4) = split /\./, $nameIP;
|
||||
|
||||
@ -213,6 +217,7 @@ sub is_me
|
||||
my $rsp;
|
||||
# push @{$rsp->{data}}, "Could not run $ifcmd.\n";
|
||||
# xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
$::VERBOSE = $verb;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -225,9 +230,11 @@ sub is_me
|
||||
|
||||
if ($myIP eq $nameIP)
|
||||
{
|
||||
$::VERBOSE = $verb;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
$::VERBOSE = $verb;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -355,9 +362,11 @@ sub get_nim_attr_val
|
||||
xCAT::InstUtils->xcmd($callback, $sub_req, "xdsh", $target, $cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "Could not run lsnim command: \'$cmd\'.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
if ($::VERBOSE) {
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "Could not run lsnim command: \'$cmd\'.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user