puppetlabs / influxdb

2 stars 22 forks source link

(SUP-3968) Support paginated api responses #65

Closed m0dular closed 1 year ago

m0dular commented 1 year ago

Prior to this commit, paginated responses from the API were not accounted for. This created an issue when list operations returned more than the default limit of 20 objects, resulting in some of the resources not being part of the state returned by the get() method.

This commit changes the influx_get() method to handle paginated responses by recursively processing the next objects until they are exhausted.