From a6a8f4496e37dee295c3584834a6b243cfb0310e Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Tue, 13 Mar 2012 14:02:23 +0000 Subject: [PATCH] modify the output of 'rpower blade state' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11840 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPpower.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/FSPpower.pm b/perl-xCAT/xCAT/FSPpower.pm index 1c157e322..3e243e09d 100644 --- a/perl-xCAT/xCAT/FSPpower.pm +++ b/perl-xCAT/xCAT/FSPpower.pm @@ -63,9 +63,7 @@ sub enumerate { ############################## if ( $type =~ /^(fsp|bpa|cec|frame|blade)$/ ) { if ($type eq 'blade') { - if ($state =~ /power-on-transition|power off/) { - $state = "off"; - } else { + if ($state =~ /standby|operating/) { $state = "on"; } }