summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-05-10 15:15:08 -0700
committerTim Smith <tsmith84@gmail.com>2016-05-10 15:15:08 -0700
commit7809966803e987241a03652411fb4b0c5ee1a09f (patch)
tree61f1ddb1ccf6b61640be1a278063695f5026f90e
parentcbca3e0138445ad5478cb72a442dfb57d6977ffb (diff)
downloadohai-7809966803e987241a03652411fb4b0c5ee1a09f.tar.gz
Allow setting dreamhost as the provider in the cloud plugins
-rw-r--r--lib/ohai/plugins/cloud.rb2
-rw-r--r--lib/ohai/plugins/cloud_v2.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/cloud.rb b/lib/ohai/plugins/cloud.rb
index b1b2b469..23084631 100644
--- a/lib/ohai/plugins/cloud.rb
+++ b/lib/ohai/plugins/cloud.rb
@@ -189,7 +189,7 @@ Ohai.plugin(:Cloud) do
cloud[:public_hostname] = openstack["public_hostname"]
cloud[:local_ipv4] = openstack["local_ipv4"]
cloud[:local_hostname] = openstack["local_hostname"]
- cloud[:provider] = "openstack"
+ cloud[:provider] = openstack["provider"]
end
# ----------------------------------------
diff --git a/lib/ohai/plugins/cloud_v2.rb b/lib/ohai/plugins/cloud_v2.rb
index 7c3f3b1a..fceb4d3f 100644
--- a/lib/ohai/plugins/cloud_v2.rb
+++ b/lib/ohai/plugins/cloud_v2.rb
@@ -246,7 +246,7 @@ Ohai.plugin(:CloudV2) do
@cloud_attr_obj.add_ipv4_addr(openstack["local_ipv4"], :private)
@cloud_attr_obj.public_hostname = openstack["public_hostname"]
@cloud_attr_obj.local_hostname = openstack["local_hostname"]
- @cloud_attr_obj.provider = "openstack"
+ @cloud_attr_obj.provider = openstack["provider"]
end
# ----------------------------------------