bin/check-stale-results.rb in sensu-plugins-sensu-2.2.0 vs bin/check-stale-results.rb in sensu-plugins-sensu-2.2.1

- old
+ new

@@ -58,10 +58,10 @@ "#{n.to_i} #{name}" end end.compact.reverse.join(' ') end - def api_request(method, path, _blk) + def api_request(method, path) unless settings.key?('api') raise 'api.json settings not found.' end http = Net::HTTP.new(settings['api']['host'], settings['api']['port']) req = net_http_req_class(method).new(path)