diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-10-28 11:53:05 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-10-28 11:53:05 +1100 |
commit | 43d0aeadbd003fa6b0787084d77e86f48e5dab1d (patch) | |
tree | b258c08a7ef0e1bdd7fc9281f9ff74ceeaa96938 /lib/facter/ipaddress.rb | |
parent | 4e707c6b536f7c7ddaedaeb4dae84e3f898426e5 (diff) | |
download | facter-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.rb | 2 |
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] |