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.
Coverage increased (+0.04%) to 34.828% when pulling 41fb2120c65d0b2567339550c3b0ea35fbcf0751 on fix/paginated-decorator into b1af1d54cfc12bdc244586c2f555f6ccb2a3e198 on master.
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.