From c7cfd0812577df8f678b65093f746d7ae651994c Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 30 May 2006 23:49:26 +0000 Subject: Adding patch from #11, with slight modifications. git-svn-id: http://reductivelabs.com/svn/facter/trunk@119 1f5c1d6a-bddf-0310-8f58-fc49e503516a --- lib/facter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/facter.rb') diff --git a/lib/facter.rb b/lib/facter.rb index 985b0d2..57711f5 100644 --- a/lib/facter.rb +++ b/lib/facter.rb @@ -12,7 +12,7 @@ class Facter include Enumerable FACTERVERSION = '1.2.1' - # = Facter 1.0 + # = Facter # Functions as a hash of 'facts' you might care about about your # system, such as mac address, IP address, Video card, etc. # returns them dynamically @@ -493,7 +493,7 @@ class Facter end retval = @values.find { |v| - if value == v + if value.downcase == v.downcase break true end } -- cgit