Closed chrissav closed 7 years ago
Is this in reference to an existing issue? No
[x] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[x] RuboCop passes
[x] Existing tests pass
[ ] Tests
[ ] Add the plugin to the README
[ ] Does it have a complete header as outlined here
Receiving the following error when running this plugin:
["/etc/sensu/plugins/metrics-statuspageio.rb:46:in `handle': undefined method `[]' for nil:NilClass (NoMethodError)\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.4.2/lib/sensu-handler.rb:81:in `block in <class:Handler>'\n"]
This change started sending metrics to statuspage. handler-statuspage.rb L89 retrieves the api_key and page_id from settings in the same way.
settings
No
released: https://rubygems.org/gems/sensu-plugins-statuspage/versions/1.1.1
@chrissav thanks for the contribution!
Pull Request Checklist
Is this in reference to an existing issue? No
General
[x] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[x] RuboCop passes
[x] Existing tests pass
New Plugins
[ ] Tests
[ ] Add the plugin to the README
[ ] Does it have a complete header as outlined here
Purpose
Receiving the following error when running this plugin:
This change started sending metrics to statuspage. handler-statuspage.rb L89 retrieves the api_key and page_id from
settings
in the same way.Known Compatibility Issues
No