Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cloud metadata to ignore proxy settings #2704

Merged

Conversation

mhashizume
Copy link
Contributor

Prior to this commit, if the http_proxy environment variable was set for Net::HTTP, cloud resolvers (ec2, GCE, Azure) would fail to resolve metadata.

This commit adds a new positional argument to Facter::Util::Resolvers::Http.get_request and #put_request to allow those resolvers to disable proxy settings.

This commit updates method documentation into YARD formatting.
@mhashizume mhashizume added the bug Something isn't working label Apr 11, 2024
@mhashizume mhashizume requested a review from a team as a code owner April 11, 2024 21:06
@mhashizume mhashizume force-pushed the FACT-636/main/cloud-proxy-positional-arg branch 3 times, most recently from 278b2f7 to 2432c49 Compare April 11, 2024 22:00
Prior to this commit, if the http_proxy environment variable was set for
Net::HTTP, cloud resolvers (ec2, GCE, Azure) would fail to resolve
metadata.

This commit adds a new positional argument to
Facter::Util::Resolvers::Http.get_request and #put_request to allow
those resolvers to disable proxy settings.
@mhashizume mhashizume force-pushed the FACT-636/main/cloud-proxy-positional-arg branch from 2432c49 to 35963ca Compare April 12, 2024 16:51
@joshcooper joshcooper merged commit 5335371 into puppetlabs:main Apr 12, 2024
17 checks passed
@mhashizume mhashizume deleted the FACT-636/main/cloud-proxy-positional-arg branch September 16, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants