Skip to content

Commit

Permalink
Merge pull request #1812 from chef/jfm/ohai_azure_metadata
Browse files Browse the repository at this point in the history
Updated the metadata versions
  • Loading branch information
johnmccrae authored Oct 17, 2023
2 parents adbc870 + 2e5ce22 commit 19ab1f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/ohai/mixin/azure_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/mixin/azure_metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 19ab1f6

Please sign in to comment.