Skip to content

Commit

Permalink
Merge pull request #2732 from jiwonaid/main
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper authored Jun 13, 2024
2 parents 3e47ee6 + 3973aaa commit 43111c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/facter/resolvers/gce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def read_facts(fact_name)
end

def query_for_metadata
gce_data = extract_to_hash(Facter::Util::Resolvers::Http.get_request(METADATA_URL, HEADERS, false))
gce_data = extract_to_hash(Facter::Util::Resolvers::Http.get_request(METADATA_URL, HEADERS, {}, false))
parse_instance(gce_data)

gce_data.empty? ? nil : gce_data
Expand Down
2 changes: 1 addition & 1 deletion spec/facter/resolvers/gce_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

before do
allow(Facter::Util::Resolvers::Http).to receive(:get_request)
.with(gce_metadata_url, gce_url_headers, false)
.with(gce_metadata_url, gce_url_headers, {}, false)
.and_return(http_response_body)
end

Expand Down

0 comments on commit 43111c9

Please sign in to comment.