-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
This commit is contained in:
jbjohnso 2008-09-12 01:16:59 +00:00
parent 12e44ea015
commit 201309330b

View File

@ -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];
}