Fix handling of PageSize for ELB/ELBv2

Resolves #1497
This commit is contained in:
Dave Golombek 2018-03-05 16:52:56 -05:00
commit 73a1c03580
2 changed files with 4 additions and 4 deletions

View file

@ -61,7 +61,7 @@ class ELBResponse(BaseResponse):
start = all_names.index(marker) + 1
else:
start = 0
page_size = self._get_param('PageSize', 50) # the default is 400, but using 50 to make testing easier
page_size = self._get_int_param('PageSize', 50) # the default is 400, but using 50 to make testing easier
load_balancers_resp = all_load_balancers[start:start + page_size]
next_marker = None
if len(all_load_balancers) > start + page_size: