summaryrefslogtreecommitdiffstats
path: root/lib/facter/ipaddress.rb
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-10-28 11:53:05 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-10-28 11:53:05 +1100
commit43d0aeadbd003fa6b0787084d77e86f48e5dab1d (patch)
treeb258c08a7ef0e1bdd7fc9281f9ff74ceeaa96938 /lib/facter/ipaddress.rb
parent4e707c6b536f7c7ddaedaeb4dae84e3f898426e5 (diff)
downloadfacter-43d0aeadbd003fa6b0787084d77e86f48e5dab1d.tar.gz
facter-43d0aeadbd003fa6b0787084d77e86f48e5dab1d.tar.xz
facter-43d0aeadbd003fa6b0787084d77e86f48e5dab1d.zip
Fixed #1697 - Typo in ipaddress.rb causes timeout under Solaris 10 SPARC
Diffstat (limited to 'lib/facter/ipaddress.rb')
-rw-r--r--lib/facter/ipaddress.rb2
1 files changed, 1 insertions, 1 deletions
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]