Fix 'MaxRecords' type issues by _get_param()

It alternates _get_param() with _get_int_param() on parsing the
parameter 'MaxRecords'.
This commit is contained in:
Jongseok Choi 2019-07-18 03:09:53 +09:00
commit 5d91ce20fc
3 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ class RDSResponse(BaseResponse):
start = all_ids.index(marker) + 1
else:
start = 0
page_size = self._get_param('MaxRecords', 50) # the default is 100, but using 50 to make testing easier
page_size = self._get_int_param('MaxRecords', 50) # the default is 100, but using 50 to make testing easier
instances_resp = all_instances[start:start + page_size]
next_marker = None
if len(all_instances) > start + page_size: