5858N/A--- facter-2.4.6/lib/facter/ipaddress.rb.orig 2016-04-19 15:19:02.958338799 -0700
5858N/A+++ facter-2.4.6/lib/facter/ipaddress.rb 2016-04-19 15:27:05.519845908 -0700
4993N/A Facter.add(:ipaddress) do
4993N/A output = Facter::Util::IP.exec_ifconfig(["-a"])
4993N/A Facter.add(:ipaddress) do
4993N/A+ output = Facter::Util::IP.exec_ifconfig(["-a"])
4993N/A+ output.each_line { |str|
4993N/A+ Facter::Core::Execution.execute("getent hosts #{hostname}").each_line {
4993N/A+ _ip = l.chomp.split()[0]
4993N/A+Facter.add(:ipaddress) do
4993N/A Facter.add(:ipaddress, :timeout => 2) do
4993N/A- if hostname = Facter.value(:hostname)
4993N/A+ if hostname = Facter.value(:hostname) &&
4993N/A+ Facter::Core::Execution.which('host')
4993N/A if host = Facter::Core::Execution.execute("host #{hostname}")
4993N/A list = host.chomp.split(/\s/)