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:
		| @@ -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); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user