diff options
author | Jeremy Katz <katzj@hubspot.com> | 2011-04-18 12:28:11 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@fedoraproject.org> | 2011-04-18 12:28:53 -0400 |
commit | f91c1205e4dc9a78066af8818fdb92f630aad0d9 (patch) | |
tree | 121a48c9d7d4d66d5345e27353b5a4199f70497e /lib | |
parent | cfcc4285e2e505700e16142deb10f58523a05f08 (diff) | |
download | facter-f91c1205e4dc9a78066af8818fdb92f630aad0d9.tar.gz facter-f91c1205e4dc9a78066af8818fdb92f630aad0d9.tar.xz facter-f91c1205e4dc9a78066af8818fdb92f630aad0d9.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/arp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |