sensu-plugins / sensu-plugin

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

Fix paginated_get backward compatibility #193

Closed cwjohnston closed 5 years ago

cwjohnston commented 5 years ago

Description

Fixes incompatibility in paginated_get with Sensu API version 1.3 and earlier.

Motivation and Context

Sensu 1.4 added support for pagination of API requests using query string parameters.

Sensu Plugin 2.6.0 added paginated_get method for paginating API requests.

When querying Sensu API version 1.3 or earlier, the paginated_get implementation in sensu-plugin 2.6.0 will potentially block forever, falsely iterating over the same data set.

How Has This Been Tested?

Tested against versions 1.3 and 1.4 of Sensu API

Types of changes

Checklist:

Known Caveats

None.

majormoses commented 5 years ago

released: https://rubygems.org/gems/sensu-plugin/versions/2.6.1