From f91c1205e4dc9a78066af8818fdb92f630aad0d9 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 18 Apr 2011 12:28:11 -0400 Subject: downcase arp output so that the ec2 arp is matched CentOS 5.4 arp gives the arp output as uppercase; downcase it so we're ensured a match --- lib/facter/arp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/arp.rb b/lib/facter/arp.rb index 0a7cf67..6269ae0 100644 --- a/lib/facter/arp.rb +++ b/lib/facter/arp.rb @@ -8,7 +8,7 @@ Facter.add(:arp) do arp = "" output.each_line do |s| if s =~ /^\S+\s\S+\s\S+\s(\S+)\s\S+\s\S+\s\S+$/ - arp = $1 + arp = $1.downcase break # stops on the first match end end -- cgit