lib/facter/ipaddress.rb in facter-1.6.12 vs lib/facter/ipaddress.rb in facter-1.6.13.rc1

- old
+ new

@@ -24,10 +24,10 @@ Facter.add(:ipaddress) do confine :kernel => :linux setcode do ip = nil - output = %x{/sbin/ifconfig} + output = %x{/sbin/ifconfig 2>/dev/null} output.split(/^\S/).each { |str| if str =~ /inet addr:([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/ tmp = $1 unless tmp =~ /^127\./