From 00a10e2bbb2331e4614025983d489e3bf55b4224 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Fri, 12 Aug 2011 08:16:41 +0000 Subject: [PATCH] fix bugs 3389970, not define 'output' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10279 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/PPC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 09937366a..acef972ca 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -2064,8 +2064,9 @@ sub process_request { #my $thishcp_type = xCAT::FSPUtils->getTypeOfNode($thishcp,$callback); my $thishcp_type = xCAT::DBobjUtils->getnodetype($thishcp); if(!defined($thishcp_type)) { + my %output = (); $output{node}->[0]->{name} = [$node]; - $output{node}->[0]->{data} = ["the $node\'s hcp type is not defined in the 'ppc' table."]; + $output{node}->[0]->{data} = ["the type of $node\'s hcp is not defined in the 'ppc' table."]; $output{errorcode} = '1'; $callback-> (\%output); next;