Cleanup param parsing.

This commit is contained in:
Steve Pulec 2018-03-07 09:24:18 -05:00
parent 0361d5ddbf
commit ee35396173

View File

@ -166,7 +166,7 @@ class AutoScalingResponse(BaseResponse):
start = all_names.index(token) + 1 start = all_names.index(token) + 1
else: else:
start = 0 start = 0
max_records = int(self._get_param("MaxRecords", 50)) max_records = self._get_int_param("MaxRecords", 50)
if max_records > 100: if max_records > 100:
raise ValueError raise ValueError
groups = all_groups[start:start + max_records] groups = all_groups[start:start + max_records]