Netflix-Skunkworks / cloudaux

Cloud Auxiliary is a python wrapper and orchestration module for interacting with cloud providers
Apache License 2.0
76 stars 44 forks source link

Fix AWS pagination for responses with empty results #127

Closed patricksanders closed 3 years ago

patricksanders commented 3 years ago

Some AWS APIs may return a response with an empty results list AND a pagination token. The @paginated decorator did not support this scenario and broke from its loop on an empty result set. This PR changes the condition to only break if the pagination token is falsy.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.04%) to 34.828% when pulling 41fb2120c65d0b2567339550c3b0ea35fbcf0751 on fix/paginated-decorator into b1af1d54cfc12bdc244586c2f555f6ccb2a3e198 on master.