summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/digital_ocean.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/digital_ocean.rb')
-rw-r--r--lib/ohai/plugins/digital_ocean.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ohai/plugins/digital_ocean.rb b/lib/ohai/plugins/digital_ocean.rb
index 4ee39e2f..884cc76e 100644
--- a/lib/ohai/plugins/digital_ocean.rb
+++ b/lib/ohai/plugins/digital_ocean.rb
@@ -44,6 +44,7 @@ Ohai.plugin(:DigitalOcean) do
def looks_like_digital_ocean?
return true if hint?("digital_ocean")
return true if has_do_dmi? && can_socket_connect?(Ohai::Mixin::DOMetadata::DO_METADATA_ADDR, 80)
+
false
end
@@ -53,6 +54,7 @@ Ohai.plugin(:DigitalOcean) do
digital_ocean Mash.new
fetch_metadata.each do |k, v|
next if k == "vendor_data" # this may have sensitive data we shouldn't store
+
digital_ocean[k] = v
end
else