From 201309330b4d76d40985ad4fa35e1aead778861e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 12 Sep 2008 01:16:59 +0000 Subject: [PATCH] -Suppress empty lines commonly used to denote lack of data git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2150 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index f26b3fbfa..49b315343 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -714,7 +714,7 @@ sub vitals { $bindobj= new SNMP::VarList(@bindlist); $session->get($bindobj); #[".1.3.6.1.4.1.2.3.51.2.22.1.5.5.1.$idx.$slot"]); for my $tmp (@$bindobj) { - if ($tmp and defined $tmp->[2] and $tmp->[2] !~ /Not Readable/) { + if ($tmp and defined $tmp->[2] and $tmp->[2] !~ /Not Readable/ and $tmp->[2] ne "") { $tmp =~ s/ = /:/; push @output,$tmp->[2]; } @@ -732,7 +732,7 @@ sub vitals { $bindobj= new SNMP::VarList(@bindlist); $session->get($bindobj); for my $tmp (@$bindobj) { - if ($tmp and defined $tmp->[2] and $tmp->[2] !~ /Not Readable/) { + if ($tmp and defined $tmp->[2] and $tmp->[2] !~ /Not Readable/ and $tmp->[2] ne "") { $tmp =~ s/ = /:/; push @output,$tmp->[2]; }