diff options
author | Kris Zentner <kzentner@section6.net> | 2018-03-07 10:11:23 -0800 |
---|---|---|
committer | Kris Zentner <krisz@microsoft.com> | 2018-03-07 14:31:11 -0800 |
commit | 3cab397f0c69bae40b9accf48a037b413fc89e3c (patch) | |
tree | 4057335d2260629fb933b5d0aa61d7618449ce95 | |
parent | ab1ca015bd5a23fe47ac499a3e84ac04ef5c8ff1 (diff) | |
download | ohai-3cab397f0c69bae40b9accf48a037b413fc89e3c.tar.gz |
Receive richer metadata using recent version
New info includes resourceGroupName, availability zone info, subscriptionId, and VMSS info.
Signed-off-by: Kris Zentner <krisz@microsoft.com>
-rw-r--r-- | lib/ohai/mixin/azure_metadata.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/mixin/azure_metadata.rb b/lib/ohai/mixin/azure_metadata.rb index 90304e54..30d4e0e0 100644 --- a/lib/ohai/mixin/azure_metadata.rb +++ b/lib/ohai/mixin/azure_metadata.rb @@ -22,7 +22,7 @@ module Ohai module AzureMetadata AZURE_METADATA_ADDR = "169.254.169.254" unless defined?(AZURE_METADATA_ADDR) - AZURE_METADATA_URL = "/metadata/instance?api-version=2017-04-02" unless defined?(AZURE_METADATA_URL) + AZURE_METADATA_URL = "/metadata/instance?api-version=2017-12-01" unless defined?(AZURE_METADATA_URL) # fetch the meta content with a timeout and the required header def http_get(uri) |