From 3c4b71e06a2b50062ebf6890b62a42a31d5d1abc Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Fri, 22 Feb 2013 09:28:24 +0000 Subject: [PATCH] fix bug 3382:"rvitals cec lcds" no output git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15241 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPvitals.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/perl-xCAT/xCAT/FSPvitals.pm b/perl-xCAT/xCAT/FSPvitals.pm index 1cb36bac6..6915f26ae 100644 --- a/perl-xCAT/xCAT/FSPvitals.pm +++ b/perl-xCAT/xCAT/FSPvitals.pm @@ -116,6 +116,9 @@ sub enumerate_lcds { } else { my @array = split(/\n/, $data); foreach my $a (@array) { + if ($a !~ /:\s?[^\s]*\s?[0|1]/) { + next; + } my @t = split(/:/, $a); my $name = $t[0]; $data = $t[1];