From e0159f96d70080d4f112639b606e2280fe6712c4 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 5 Aug 2010 00:38:21 +0000 Subject: [PATCH] modification of getHCPsOfNodes() git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6983 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/PPC.pm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 669cacabc..f13119216 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -1966,16 +1966,16 @@ sub getHCPsOfNodes my $hcp_hash = $ppctab->getNodeAttribs( $node,[qw(hcp)]); my $hcp = $hcp_hash->{hcp}; if ( !$hcp) { - #xCAT::MsgUtils->message('E', "Not found the hcp of $node"); - $callback->({data=>["Not found the hcp of $node"]}); - return undef; - } - } - #print "hcp:\n"; - #print Dumper($hcp); - my @h = split(",", $hcp); - $hcps{$node}{hcp} = \@h; - $hcps{$node}{num} = @h; + #xCAT::MsgUtils->message('E', "Not found the hcp of $node"); + $callback->({data=>["Not found the hcp of $node"]}); + return undef; + } + #print "hcp:\n"; + #print Dumper($hcp); + my @h = split(",", $hcp); + $hcps{$node}{hcp} = \@h; + $hcps{$node}{num} = @h; + } } #print "in getHCPsOfNodes\n"; #print Dumper(\%hcps);