Skip to content

Error in ruby 2.7.0 #20

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

Closed
CHRT3 opened this issue Apr 27, 2021 · 1 comment
Closed

Error in ruby 2.7.0 #20

CHRT3 opened this issue Apr 27, 2021 · 1 comment

Comments

@CHRT3
Copy link

CHRT3 commented Apr 27, 2021

check_haproxy_stats.rb:134: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/lib/ruby/2.7.0/open-uri.rb:13: warning: The called method `open' is defined here
check_haproxy_stats.rb:134: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open

Try to get rid of the error above. You need a change in line 134:

return open(options.url, open_options(options)) to return open.URI(options.url, **open_options(options))

@benprew
Copy link
Owner

benprew commented Apr 29, 2021

Hi @CHRT3 thanks for the note. This should be fixed now. Let me know if it's not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants