Skip to content

Commit

Permalink
Fix syntax error (verify_mode needs to be a hash key) (#7)
Browse files Browse the repository at this point in the history
* verify_mode needs to be a hash key

as seen in https://github.com/ruby/ruby/blob/3a05da132184ee2a1ccac86b4b7fa865dc05c846/lib/net/http.rb#L575

* updated changelog

* used new 1.9 hash syntax

replaced hash rockets with symbol notation
  • Loading branch information
Christian authored and sstarcher committed Sep 9, 2016
1 parent 423180b commit ea7422e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)

## [Unreleased]
+- verify_mode needs to be a hash_key: [sensu-plugins-uchiwa/issues/5](https://github.com/sensu-plugins/sensu-plugins-uchiwa/issues/4)

## [0.0.4] - 2016-06-15
### Added
Expand Down
2 changes: 1 addition & 1 deletion bin/check-uchiwa-health.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run
url = URI.parse(endpoint)

begin
res = Net::HTTP.start(url.host, url.port, :use_ssl => url.scheme == 'https', verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
res = Net::HTTP.start(url.host, url.port, use_ssl: url.scheme == 'https', verify_mode: OpenSSL::SSL::VERIFY_NONE) do |http|
req = Net::HTTP::Get.new('/health')
req.basic_auth config[:username], config[:password] if config[:username] && config[:password]
http.request(req)
Expand Down

0 comments on commit ea7422e

Please sign in to comment.