From ee353961739f004cfa5999fbcbba7d6e6d1c2288 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Wed, 7 Mar 2018 09:24:18 -0500 Subject: [PATCH] Cleanup param parsing. --- moto/autoscaling/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/autoscaling/responses.py b/moto/autoscaling/responses.py index 787198df..9e11299c 100644 --- a/moto/autoscaling/responses.py +++ b/moto/autoscaling/responses.py @@ -166,7 +166,7 @@ class AutoScalingResponse(BaseResponse): start = all_names.index(token) + 1 else: start = 0 - max_records = int(self._get_param("MaxRecords", 50)) + max_records = self._get_int_param("MaxRecords", 50) if max_records > 100: raise ValueError groups = all_groups[start:start + max_records]