lib/ohai/mixin/azure_metadata.rb in ohai-17.9.4 vs lib/ohai/mixin/azure_metadata.rb in ohai-18.0.14
- old
+ new
@@ -33,12 +33,13 @@
module AzureMetadata
AZURE_METADATA_ADDR ||= "169.254.169.254"
# it's important that the newer versions are at the end of this array so we can skip sorting it
- AZURE_SUPPORTED_VERSIONS ||= %w{ 2017-04-02 2017-08-01 2017-12-01 2018-02-01 2018-04-02
- 2018-10-01 2019-02-01 2019-03-11 2019-04-30 2019-06-01
- 2019-06-04 2019-08-01 2019-08-15 2019-11-01 }.freeze
+ AZURE_SUPPORTED_VERSIONS ||= %w{ 2018-10-01 2019-02-01 2019-03-11 2019-04-30 2019-06-01
+ 2019-06-04 2019-08-01 2019-08-15 2019-11-01 2020-06-01
+ 2020-07-15 2020-09-01 2020-10-01 2020-12-01 2021-01-01
+ 2021-02-01 2021-03-01 2021-05-01 2021-10-01 }.freeze
def best_api_version
@api_version ||= begin
logger.trace("Mixin AzureMetadata: Fetching http://#{AZURE_METADATA_ADDR}/metadata/instance to determine the latest supported metadata release")
response = http_get("/metadata/instance")