Avoid warning message when removing a node without finding its children.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9573 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-05-12 03:00:44 +00:00
parent 1213728ce1
commit 47c73a3ca5

View File

@ -287,10 +287,13 @@ sub noderm
my $cnodep = xCAT::DBobjUtils->getchildren($nn);
if ($cnodep) {
my $cnode = join ',', @$cnodep;
my $rsp;
$rsp->{data}->[0] =
"Removed a $nt node, please remove these nodes belongs to it manually: $cnode \n";
xCAT::MsgUtils->message("I", $rsp, $cb);
if ($cnode)
{
my $rsp;
$rsp->{data}->[0] =
"Removed a $nt node, please remove these nodes belongs to it manually: $cnode \n";
xCAT::MsgUtils->message("I", $rsp, $cb);
}
}
}
}