lib/ohai/mixin/azure_metadata.rb in ohai-18.1.3 vs lib/ohai/mixin/azure_metadata.rb in ohai-18.1.18
- old
+ new
@@ -39,10 +39,11 @@
# it's important that the newer versions are at the end of this array so we can skip sorting it
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
+ 2021-02-01 2021-03-01 2021-05-01 2021-10-01 2021-11-01
+ 2021-11-15 2021-12-13 2023-07-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")