lib/facter/ipaddress.rb in facter-1.5.6 vs lib/facter/ipaddress.rb in facter-1.5.7

- old
+ new

@@ -17,11 +17,11 @@ ip end end Facter.add(:ipaddress) do - confine :kernel => %w{FreeBSD OpenBSD solaris} + confine :kernel => %w{FreeBSD OpenBSD} setcode do ip = nil output = %x{/sbin/ifconfig} output.split(/^\S/).each { |str| @@ -37,10 +37,10 @@ ip end end Facter.add(:ipaddress) do - confine :kernel => %w{NetBSD} + confine :kernel => %w{NetBSD SunOS} setcode do ip = nil output = %x{/sbin/ifconfig -a} output.split(/^\S/).each { |str|