From 43d0aeadbd003fa6b0787084d77e86f48e5dab1d Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 28 Oct 2008 11:53:05 +1100 Subject: Fixed #1697 - Typo in ipaddress.rb causes timeout under Solaris 10 SPARC --- lib/facter/ipaddress.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/ipaddress.rb b/lib/facter/ipaddress.rb index b18b7c9..d7496f0 100644 --- a/lib/facter/ipaddress.rb +++ b/lib/facter/ipaddress.rb @@ -25,7 +25,7 @@ Facter.add(:ipaddress, :timeout => 2) do # we need Hostname to exist for this to work host = nil if host = Facter::Util::Resolution.exec("host #{hostname}") - host = host.chomp.split(/\s/) + list = host.chomp.split(/\s/) if defined? list[-1] and list[-1] =~ /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ list[-1] -- cgit