summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2007-01-04 04:57:53 +0000
committerluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2007-01-04 04:57:53 +0000
commitb013e21358e07766d96f31d24855fb790aa601d0 (patch)
treedc4bca345e0ee17b3aa75410d61d268eed00dd1b /lib
parent7b665cc12394af998c4ad9d41d4d3f22b88748de (diff)
downloadfacter-b013e21358e07766d96f31d24855fb790aa601d0.tar.gz
facter-b013e21358e07766d96f31d24855fb790aa601d0.tar.xz
facter-b013e21358e07766d96f31d24855fb790aa601d0.zip
Applying patch from #29.
git-svn-id: http://reductivelabs.com/svn/facter/trunk@186 1f5c1d6a-bddf-0310-8f58-fc49e503516a
Diffstat (limited to 'lib')
-rw-r--r--lib/facter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter.rb b/lib/facter.rb
index 6512390..a218c26 100644
--- a/lib/facter.rb
+++ b/lib/facter.rb
@@ -842,8 +842,8 @@ class Facter
if hostname = Facter.hostname
# we need Hostname to exist for this to work
host = nil
- if host = Resolution.exec("host #{hostname}") and host.chomp.split(/\s/)
-
+ if host = Resolution.exec("host #{hostname}")
+ host = host.chomp.split(/\s/)
if defined? list[-1] and
list[-1] =~ /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/
list[-1]