diff --git a/lib/ohai/mixin/azure_metadata.rb b/lib/ohai/mixin/azure_metadata.rb index 12a8ab6b0..26f412137 100644 --- a/lib/ohai/mixin/azure_metadata.rb +++ b/lib/ohai/mixin/azure_metadata.rb @@ -41,7 +41,8 @@ module AzureMetadata 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 }.freeze def best_api_version @api_version ||= begin diff --git a/spec/unit/mixin/azure_metadata_spec.rb b/spec/unit/mixin/azure_metadata_spec.rb index 0a3c0455c..c98e4cf46 100644 --- a/spec/unit/mixin/azure_metadata_spec.rb +++ b/spec/unit/mixin/azure_metadata_spec.rb @@ -66,7 +66,7 @@ let(:response) { double("Net::HTTP Response", code: "404") } it "returns the most recent version we know of" do - expect(mixin.best_api_version).to eq("2021-10-01") + expect(mixin.best_api_version).to eq("2021-12-13") end end