-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:
parent
12e44ea015
commit
201309330b
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user