diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index a608d67b7..9f73cfa2b 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -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); + } } } }