summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-05-10 18:58:02 -0700
committerTim Smith <tsmith84@gmail.com>2016-05-10 18:58:02 -0700
commitc11de20183301414c99ac8a929c4b2b9d95cd5fc (patch)
tree9fbd3d60d5874b709cbf716ea2c783a134ede540
parent7809966803e987241a03652411fb4b0c5ee1a09f (diff)
downloadohai-c11de20183301414c99ac8a929c4b2b9d95cd5fc.tar.gz
Use the mixin variable for the metadata server
-rw-r--r--lib/ohai/plugins/openstack.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/openstack.rb b/lib/ohai/plugins/openstack.rb
index 76317fa6..3b6fba30 100644
--- a/lib/ohai/plugins/openstack.rb
+++ b/lib/ohai/plugins/openstack.rb
@@ -65,7 +65,7 @@ Ohai.plugin(:Openstack) do
openstack[:provider] = openstack_provider
# fetch the metadata if we can do a simple socket connect first
- if can_metadata_connect?("169.254.169.254", 80)
+ if can_metadata_connect?(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80)
fetch_metadata.each do |k, v|
openstack[k] = v
end