summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/rackspace.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/rackspace.rb')
-rw-r--r--lib/ohai/plugins/rackspace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/rackspace.rb b/lib/ohai/plugins/rackspace.rb
index efe63e40..469290b6 100644
--- a/lib/ohai/plugins/rackspace.rb
+++ b/lib/ohai/plugins/rackspace.rb
@@ -162,8 +162,8 @@ Ohai.plugin(:Rackspace) do
unless rackspace[:public_ip].nil?
rackspace[:public_hostname] = begin
Resolv.getname(rackspace[:public_ip])
- rescue Resolv::ResolvError, Resolv::ResolvTimeout
- rackspace[:public_ip]
+ rescue Resolv::ResolvError, Resolv::ResolvTimeout
+ rackspace[:public_ip]
end
end
rackspace[:local_ipv4] = rackspace[:private_ip]