sensu-plugins / sensu-plugin

A framework for writing Sensu plugins & handlers with Ruby.
http://sensuapp.org
MIT License
126 stars 117 forks source link

[handler] use plural form API endpoint in event_exists? method #157

Closed cwjohnston closed 7 years ago

cwjohnston commented 7 years ago

Description

This pull request changes the Sensu API endpoint used by Sensu::Handler.event_exists? from the singular form event to the plural form events.

Motivation and Context

Sensu::Handler's event_exists? method uses the singular form of the events API. The plural form was added in Sensu 0.9, and the singular form was removed in Sensu 0.25.0.

Because the singular form was removed, event_exists? will always return false, effectively breaking the now-deprecated check dependency filtering in this library.

How Has This Been Tested?

It has not been tested.

Types of changes

cwjohnston commented 7 years ago

Closes #156