From 408a2ee234c1955c51182f369af971024936b233 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 16 Sep 2010 08:42:43 +0000 Subject: [PATCH] all_lpars_state when the cec is in cec standby state git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPpower.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-xCAT/xCAT/FSPpower.pm b/perl-xCAT/xCAT/FSPpower.pm index a8cfcea2e..1623d114e 100644 --- a/perl-xCAT/xCAT/FSPpower.pm +++ b/perl-xCAT/xCAT/FSPpower.pm @@ -6,6 +6,7 @@ use strict; use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR); use xCAT::PPCpower; use xCAT::FSPUtils; +#use Data::Dumper; ########################################################################## # Parse the command line for options and operands ########################################################################## @@ -305,6 +306,11 @@ sub state { push @result, [$name, "$prefix$data",$Rc]; next; } + #print Dumper($data); + my @k = keys(%$data); + if( grep(/all/, @k) == 1 ) { + $data->{$id} = $data->{all}; + } ################################## # Node not found ##################################