You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting puppet-forge-server with Ruby 2.7 fails with
[2021-01-27 23:57:17] DEBUG Fetching data for url: https://forgeapi.puppetlabs.com/v3/modules/puppetlabs-stdlib from remote server
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/puppet-forge-server-1.10.1/lib/puppet_forge_server/http/http_client.rb:89: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
Offending line is http_client.rb:89
I'm not a Ruby developer so I don't know how best to submit a patch which covers the various Ruby versions out there, but changing open(url, @uri_options) -> OpenURI.open_uri(url, @uri_options) fixes the problem
Starting puppet-forge-server with Ruby 2.7 fails with
[2021-01-27 23:57:17] DEBUG Fetching data for url: https://forgeapi.puppetlabs.com/v3/modules/puppetlabs-stdlib from remote server
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/puppet-forge-server-1.10.1/lib/puppet_forge_server/http/http_client.rb:89: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
Offending line is http_client.rb:89
I'm not a Ruby developer so I don't know how best to submit a patch which covers the various Ruby versions out there, but changing open(url, @uri_options) -> OpenURI.open_uri(url, @uri_options) fixes the problem
/opt/puppetlabs/puppet/bin/ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
The text was updated successfully, but these errors were encountered: