From 7852b3ca6203af7e100c71996f2e68a601c0b9ef Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 11 Sep 2008 02:26:39 +0000 Subject: [PATCH] -Negative/zero slot ids have been used by some to indicate a management module, may not be the best way, but provide compatibility for those scenarios, part 2 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2141 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 7462d1ca6..b66ec9a67 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -655,7 +655,7 @@ sub vitals { if ( $#_ == 0 && $_[0] eq '' ) { pop @_; push @_,"all" } #-- default is all if no argument given - if ( defined $slot ) { #-- blade query + if ( defined $slot and $slot > 0 ) { #-- blade query foreach (@_) { if ($_ eq 'all') { push @vitems,qw(temp voltage wattage summary);