From 47c73a3ca5f2c9cd962f32100ba3a2dacb601a22 Mon Sep 17 00:00:00 2001 From: yinle Date: Thu, 12 May 2011 03:00:44 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/tabutils.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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); + } } } }